-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not load service names which are class or interfaces themselves (#23)
- Loading branch information
Showing
8 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/LaminasIntegration/data/serviceManagerDynamicReturn-0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[ | ||
{ | ||
"message": "The service \"bar\" was not configured in Laminas\\ServiceManager\\ServiceLocatorInterface.", | ||
"line": 23, | ||
"line": 24, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "The service \"foobar\" was not configured in ViewHelperManager nor the class \"foobar\" exists.", | ||
"line": 31, | ||
"line": 32, | ||
"ignorable": true | ||
} | ||
] |
9 changes: 7 additions & 2 deletions
9
tests/LaminasIntegration/data/serviceManagerDynamicReturn-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
[ | ||
{ | ||
"message": "Call to an undefined method LaminasPhpStan\\TestAsset\\CssService::isCssWut().", | ||
"line": 29, | ||
"line": 30, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "Call to an undefined method LaminasPhpStan\\TestAsset\\HeavyService::bar().", | ||
"line": 36, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "Cannot access property $foo on array<string, string>.", | ||
"line": 39, | ||
"line": 44, | ||
"ignorable": true | ||
} | ||
] |
2 changes: 1 addition & 1 deletion
2
tests/LaminasIntegration/data/serviceManagerDynamicReturn-3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[ | ||
{ | ||
"message": "Offset 'xyz' does not exist on array('foo' => 'bar').", | ||
"line": 38, | ||
"line": 43, | ||
"ignorable": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace LaminasPhpStan\TestAsset; | ||
|
||
final class HeavyService | ||
{ | ||
public function __construct() | ||
{ | ||
throw new \RuntimeException('Too heavy to load for Static Analysis'); | ||
} | ||
|
||
public function foo(): bool | ||
{ | ||
return true; | ||
} | ||
} |