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/var-dumper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.2.2
Choose a base ref
...
head repository: symfony/var-dumper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.2.3
Choose a head ref
  • 4 commits
  • 1 file changed
  • 2 contributors

Commits on Dec 22, 2022

  1. Copy the full SHA
    ad74890 View commit details
  2. Merge branch '5.4' into 6.0

    * 5.4:
      Fix integration test gha
      Update RedisTrait.php
      Use static methods inside data providers
      [VarExporter] Fix exporting classes with __unserialize() but not __serialize()
      [Validator] Fix IBAN format for Tunisia and Mauritania
      [Workflow] Allow spaces in place names so the PUML dump doesn't break
    nicolas-grekas committed Dec 22, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    targos Michaël Zasso
    Copy the full SHA
    7d8e7c3 View commit details
  3. Merge branch '6.0' into 6.1

    * 6.0:
      Fix integration test gha
      Update RedisTrait.php
      Use static methods inside data providers
      [VarExporter] Fix exporting classes with __unserialize() but not __serialize()
      [Validator] Fix IBAN format for Tunisia and Mauritania
      [Workflow] Allow spaces in place names so the PUML dump doesn't break
    nicolas-grekas committed Dec 22, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    targos Michaël Zasso
    Copy the full SHA
    66ad854 View commit details
  4. Merge branch '6.1' into 6.2

    * 6.1:
      Fix integration test gha
      Update RedisTrait.php
      Use static methods inside data providers
      [VarExporter] Fix exporting classes with __unserialize() but not __serialize()
      [Validator] Fix IBAN format for Tunisia and Mauritania
      [Workflow] Allow spaces in place names so the PUML dump doesn't break
    nicolas-grekas committed Dec 22, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    targos Michaël Zasso
    Copy the full SHA
    fdbadd4 View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 Tests/Caster/CasterTest.php
10 changes: 5 additions & 5 deletions Tests/Caster/CasterTest.php
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ class CasterTest extends TestCase
{
use VarDumperTestTrait;

private $referenceArray = [
private static $referenceArray = [
'null' => null,
'empty' => false,
'public' => 'pub',
@@ -38,12 +38,12 @@ class CasterTest extends TestCase
public function testFilter($filter, $expectedDiff, $listedProperties = null)
{
if (null === $listedProperties) {
$filteredArray = Caster::filter($this->referenceArray, $filter);
$filteredArray = Caster::filter(self::$referenceArray, $filter);
} else {
$filteredArray = Caster::filter($this->referenceArray, $filter, $listedProperties);
$filteredArray = Caster::filter(self::$referenceArray, $filter, $listedProperties);
}

$this->assertSame($expectedDiff, array_diff_assoc($this->referenceArray, $filteredArray));
$this->assertSame($expectedDiff, array_diff_assoc(self::$referenceArray, $filteredArray));
}

public function provideFilter()
@@ -126,7 +126,7 @@ public function provideFilter()
],
[
Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_VERBOSE,
$this->referenceArray,
self::$referenceArray,
['public', "\0*\0protected"],
],
[