Skip to content

Commit

Permalink
chore(deps): update phpstan packages
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and hrach committed Feb 15, 2025
1 parent 0db7a3c commit b774edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"nette/tester": "~2.5",
"mockery/mockery": ">=1.5.1",
"phpstan/extension-installer": "1.4.3",
"phpstan/phpstan": "2.1.3",
"phpstan/phpstan": "2.1.5",
"phpstan/phpstan-deprecation-rules": "2.0.1",
"phpstan/phpstan-nette": "2.0.2",
"phpstan/phpstan-nette": "2.0.3",
"phpstan/phpstan-mockery": "2.0.0",
"phpstan/phpstan-strict-rules": "2.0.3",
"nextras/multi-query-parser": "~1.0",
Expand Down
6 changes: 1 addition & 5 deletions src/Bridges/NetteDI/PhpDocRepositoryFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,10 @@ protected function findRepositories(string $modelClass): array

$repositories = [];
preg_match_all(
'~^ [ \t*]* @property(?:|-read) [ \t]+ ([^\s$]+) [ \t]+ \$ (\w+) ()~mx',
'~^ [ \t*]* @property(?:|-read) [ \t]+ ([^\s$]+) [ \t]+ \$ (\w+)~mx',
(string) $modelReflection->getDocComment(), $matches, PREG_SET_ORDER
);

/**
* @var string $type
* @var string $name
*/
foreach ($matches as [, $type, $name]) {
/** @var class-string<IRepository<IEntity>> $type */
$type = Reflection::expandClassName($type, $modelReflection);
Expand Down

0 comments on commit b774edf

Please sign in to comment.