-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[VarDumper] Towards PHP7 support #14204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -69,23 +70,23 @@ public static function castErrorException(\ErrorException $e, array $a, Stub $st | |||
|
|||
public static function castThrowingCasterException(ThrowingCasterException $e, array $a, Stub $stub, $isNested) | |||
{ | |||
$b = (array) $a["\0Exception\0previous"]; | |||
$b = (array) $a[$xPrefix.'previous']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undefined var in this scope
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, fixed, thanks
240335f
to
8d5f480
Compare
@@ -81,7 +80,7 @@ public function testGet() | |||
</samp>} | |||
"<span class=sf-dump-key>closure</span>" => <span class=sf-dump-note>Closure</span> {<a class=sf-dump-ref>#%d</a><samp> | |||
<span class=sf-dump-meta>reflection</span>: """ | |||
<span class=sf-dump-str title="%d characters">Closure [ <user> {$closureLabel} Symfony\Component\VarDumper\Tests\Fixture\{closure} ] {</span> | |||
<span class=sf-dump-str title="%d characters">Closure [ <user> %s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should keep the closing space as part of the assertion
d0f923d
to
be98abd
Compare
be98abd
to
df484da
Compare
This PR is ready. The last failing test should be fixed once https://bugs.php.net/69376 is. |
Thank you @nicolas-grekas. |
This PR was merged into the 2.6 branch. Discussion ---------- [VarDumper] Towards PHP7 support | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - That's a start Commits ------- df484da [VarDumper] Towards PHP7 support
That's a start