Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reproducer for symfony/symfony#32395.
- Loading branch information
0 parents
commit 87552e6
Showing
5 changed files
with
236 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor |
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,21 @@ | ||
{ | ||
"name": "derrabus/symfony-32395-reproducer", | ||
"type": "project", | ||
"description": "Reproducer for symfony/symfony#32395", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Alexander M. Turek", | ||
"email": "me@derrabus.de" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.1.9", | ||
"symfony/config": "^3.4" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Rabus\\Symfony32395Reproducer\\": "src" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
<?php | ||
|
||
namespace Rabus\Symfony32395Reproducer; | ||
|
||
final class TestClass implements \InvalidInterface | ||
{ | ||
} |
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,15 @@ | ||
<?php | ||
|
||
use Rabus\Symfony32395Reproducer\TestClass; | ||
use Symfony\Component\Config\Resource\ClassExistenceResource; | ||
|
||
require __DIR__.'/vendor/autoload.php'; | ||
|
||
$resource = new ClassExistenceResource(TestClass::class); | ||
|
||
try { | ||
$resource->isFresh(0); | ||
} catch (Throwable $e) { | ||
printf('Caught %s!', get_class($e)); | ||
} | ||
echo "\n"; |