Skip to content

Fix static analysis suppression in RouteCollector::removeNamedRoute()#3445

Merged
odan merged 1 commit into
slimphp:4.xfrom
akrabat:remove-static-analysis-supression
May 21, 2026
Merged

Fix static analysis suppression in RouteCollector::removeNamedRoute()#3445
odan merged 1 commit into
slimphp:4.xfrom
akrabat:remove-static-analysis-supression

Conversation

@akrabat
Copy link
Copy Markdown
Member

@akrabat akrabat commented May 21, 2026

Remove static analysis suppression about using null as an array key (PHP 8.5 deprecation warning), by passing $name directly as it's a string, whereas $route->getName() is string|null.

Note that we can use $route->getIdentifier() as that returns string.

Remove static analysis suppression about using null as an array key (PHP
8.5 deprecation warning), by passing $name directly as it's a string,
whereas $route->getName() is string|null.
@akrabat akrabat added this to the 4.16.0 milestone May 21, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 99.449%. remained the same — akrabat:remove-static-analysis-supression into slimphp:4.x

@odan odan merged commit 402fcbc into slimphp:4.x May 21, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants