Make data array variable type within Report
more precise
#167
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
7 errors
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L49
Method Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Report::getDirective() should return string|null but returns int|string.
|
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L53
Parameter #2 $string of function explode expects string, int|string given.
|
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L63
Method Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Report::getUri() should return string|null but returns int|string|null.
|
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L68
Method Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Report::getScriptSample() should return string|null but returns int|string|null.
|
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L114
Method Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Report::getSourceFile() should return string|null but returns int|string|null.
|
PHPStan:
src/ContentSecurityPolicy/Violation/Report.php#L122
Method Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Report::getData() should return array<string, string> but returns array<string, int|string>.
|
PHPStan
Process completed with exit code 1.
|