Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.3.3
Choose a base ref
...
head repository: symfony/yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.3.7
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 27, 2023

  1. Fix passing null to trim()

    javaDeveloperKid authored and javaDeveloperKid committed Oct 27, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    antfu Anthony Fu
    Copy the full SHA
    c6980e8 View commit details

Commits on Oct 28, 2023

  1. Merge branch '5.4' into 6.3

    * 5.4:
      Fix passing null to trim()
    fabpot committed Oct 28, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    antfu Anthony Fu
    Copy the full SHA
    9758b6c View commit details
Showing with 5 additions and 0 deletions.
  1. +4 −0 Inline.php
  2. +1 −0 Tests/InlineTest.php
4 changes: 4 additions & 0 deletions Inline.php
Original file line number Diff line number Diff line change
@@ -57,6 +57,10 @@ public static function initialize(int $flags, int $parsedLineNumber = null, stri
*/
public static function parse(string $value = null, int $flags = 0, array &$references = []): mixed
{
if (null === $value) {
return '';
}

self::initialize($flags);

$value = trim($value);
1 change: 1 addition & 0 deletions Tests/InlineTest.php
Original file line number Diff line number Diff line change
@@ -318,6 +318,7 @@ public static function getTestsForParse()
{
return [
['', ''],
[null, ''],
['null', null],
['false', false],
['true', true],