Skip to content

Commit 365809e

Browse files
Add type to final/internal public/protected properties
1 parent d314f23 commit 365809e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Caster/ExceptionCaster.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
*/
2525
class ExceptionCaster
2626
{
27-
public static $srcContext = 1;
28-
public static $traceArgs = true;
29-
public static $errorTypes = [
27+
public static int $srcContext = 1;
28+
public static bool $traceArgs = true;
29+
public static array $errorTypes = [
3030
\E_DEPRECATED => 'E_DEPRECATED',
3131
\E_USER_DEPRECATED => 'E_USER_DEPRECATED',
3232
\E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR',

Tests/Caster/ReflectionCasterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public function testGenerator()
499499
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
500500
› yield 1;
501501
› }
502-
502+
503503
}
504504
}
505505
closed: false

0 commit comments

Comments
 (0)