Skip to content

Commit 65948ca

Browse files
committed
Updated packages
1 parent 253657f commit 65948ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"require": {
1919
"php": ">=8.4.0",
2020
"zircote/swagger-php": "^4.11",
21-
"cebe/php-openapi": "^1.7"
21+
"cebe/php-openapi": "^1.8"
2222
},
2323
"require-dev": {
24-
"mako/framework": "^11.0.0",
25-
"phpstan/phpstan": "^2.0.3"
24+
"mako/framework": "^11.4.0",
25+
"phpstan/phpstan": "^2.1.32"
2626
},
2727
"minimum-stability": "dev",
2828
"prefer-stable": true,

src/generators/routing/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function getRoutePatterns(array $parameters): array
105105
if (isset($this->parameterPatterns[$parameter->schema->type][$parameter->schema->format ?? '_'])) {
106106
$patterns[$parameter->name] = $this->parameterPatterns[$parameter->schema->type][$parameter->schema->format ?? '_'];
107107
}
108-
elseif ($parameter->schema->format !== null && str_starts_with($parameter->schema->format, 'regex:')) {
108+
elseif (!empty($parameter->schema->format) && str_starts_with($parameter->schema->format, 'regex:')) {
109109
[, $regex] = explode(':', $parameter->schema->format);
110110

111111
$patterns[$parameter->name] = $regex;

0 commit comments

Comments
 (0)