-
-
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.
ServiceManager: handle services as anonymous classes (#32)
- Loading branch information
Showing
12 changed files
with
94 additions
and
45 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
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
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": 24, | ||
"line": 26, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "The service \"foobar\" was not configured in ViewHelperManager nor the class \"foobar\" exists.", | ||
"line": 32, | ||
"line": 34, | ||
"ignorable": true | ||
} | ||
] |
6 changes: 3 additions & 3 deletions
6
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,17 +1,17 @@ | ||
[ | ||
{ | ||
"message": "Call to an undefined method LaminasPhpStan\\TestAsset\\CssService::isCssWut().", | ||
"line": 30, | ||
"line": 32, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "Call to an undefined method LaminasPhpStan\\TestAsset\\HeavyService::bar().", | ||
"line": 36, | ||
"line": 38, | ||
"ignorable": true | ||
}, | ||
{ | ||
"message": "Cannot access property $foo on array<string, string>.", | ||
"line": 44, | ||
"line": 46, | ||
"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": 43, | ||
"line": 45, | ||
"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,8 @@ | ||
<?php | ||
|
||
namespace LaminasPhpStan\TestAsset; | ||
|
||
interface FooInterface | ||
{ | ||
public function isFoo(): bool; | ||
} |
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