Skip to content

Commit

Permalink
Reproducer for symfony/symfony#32395.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jul 6, 2019
0 parents commit 87552e6
Show file tree
Hide file tree
Showing 5 changed files with 236 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
vendor
21 changes: 21 additions & 0 deletions composer.json
@@ -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"
}
}
}
192 changes: 192 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/TestClass.php
@@ -0,0 +1,7 @@
<?php

namespace Rabus\Symfony32395Reproducer;

final class TestClass implements \InvalidInterface
{
}
15 changes: 15 additions & 0 deletions test.php
@@ -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";

0 comments on commit 87552e6

Please sign in to comment.