summaryrefslogtreecommitdiffstats
path: root/php-phpspec-prophecy-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-06 08:06:17 +0100
committerRemi Collet <remi@remirepo.net>2020-03-06 08:06:17 +0100
commita9efe3f80b96b29ea090ace4a64b53d8f2069578 (patch)
tree527a36153c48d2be2210043d851abac0f69e822e /php-phpspec-prophecy-autoload.php
parentad686690e323de5c5ac0dd4a87fb7df133618821 (diff)
update to 1.10.3
allow phpdocumentor/reflection-docblock 5.0
Diffstat (limited to 'php-phpspec-prophecy-autoload.php')
-rw-r--r--php-phpspec-prophecy-autoload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-phpspec-prophecy-autoload.php b/php-phpspec-prophecy-autoload.php
index b844b2a..f4b72b2 100644
--- a/php-phpspec-prophecy-autoload.php
+++ b/php-phpspec-prophecy-autoload.php
@@ -9,7 +9,9 @@ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
// Dependencies
require_once 'Doctrine/Instantiator/autoload.php';
-if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autoload.php')) {
+if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock5/autoload.php')) {
+ require_once $dep;
+} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autoload.php')) {
require_once $dep;
} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock/autoload.php')) {
require_once $dep;