Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustments for changes to the Unbound exception message in CompileInjector #306

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/AppAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use function assert;
use function sprintf;
use function str_contains;
use function str_ends_with;
use function str_replace;
use function ucwords;
Expand Down Expand Up @@ -57,7 +58,7 @@ public function get(AbstractUri $uri): ResourceObject
private function getNotFound(AbstractUri $uri, Unbound $e, string $class): Throwable
{
$unboundClass = $e->getMessage();
if ($unboundClass === "{$class}-") {
if (str_contains($unboundClass, "{$class}-")) {
return new ResourceNotFoundException((string) $uri, 404, $e);
}

Expand Down
Loading