Skip to content

Make data array variable type within Report more precise #167

Make data array variable type within Report more precise

Make data array variable type within Report more precise #167

Re-run triggered December 18, 2023 07:08
Status Failure
Total duration 33s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.