-
Notifications
You must be signed in to change notification settings - Fork 0
Fatal error: Cannot use League\Uri\Interfaces\Uri as Uri because the name is already in use #3
Comments
To reproduce:
|
@SDKiller thanks for the report I'll patch this ASAP. But I believe the report is done in the wrong package. This is a uri-scheme issue :) |
@SDKiller I've follow you reproducing steps but I failed to get this error :'( I've used composer require league/uri:dev-master |
Yes, it's rather strange. I just reproduced it again on Windows 7 with php 7.0.4 But I failed to reproduce it on Ubuntu 17.04 with php 7.1.7 |
I have Ubuntu 16.04 with PHP 7.0.22 and no issue so it is either an issue with this version of PHP or with the Windows version of PHP or else :'( |
maybe it is related to this PHP bug which was fixed in PHP 7.0.13 ... https://bugs.php.net/bug.php?id=66773 |
If so I can only update PHP minimal requirements |
I'll try to upgrade my windows php installation to check this and let you know. |
FWIW ... I've install Ubuntu on Windows 10 with PHP7.0.22 and no errro their too. So I believe it is a PHP bug I'll update the PHP requirements then on the 5.2 release |
Could not test on 7.0.13 Windows 7, php 7.0.21 - issue is not reproducible. |
so I'll just update the PHP requirements then for |
I get the same error. Fatal error: Cannot use League\Uri\Interfaces\Uri as Uri because the name is already in use in .../vendor/league/uri-manipulations/src/functions.php on line 17 The error is gone If I edit league/uri-schemes/src/Schemes/deprecated.php and remove line 57 - 65 (like SDKiller already said). PHP Version: 7.0.27 on osX |
@stepofweb and @SDKiller I'll update the package to fix this issue hopefully this week or next week. Thanks for the report. |
- resolve issue #3 - adding PHPStan - update league\uri-components requirement - update package settings (travis,scrutinizr)
- resolve issue #3 - adding PHPStan - update league\uri-components requirement - update package settings (travis,scrutinizr)
the bug is patched on master and will be release in version 1.5.0 |
- resolve issue #3 - adding PHPStan - update league\uri-components requirement - update package settings (travis,scrutinizr)
Issue summary
Not sure where to post this issue here or to the
uri-schemes
.Fatal error on the very project startup - I guess when autoloading happens:
System informations
(In case of a bug report Please complete the table below)
Standalone code, or other way to reproduce the problem
After I updated the whole package
"league/uri"
via composer.Currently installed:
I believe this error comes from:
https://github.com/thephpleague/uri-schemes/blob/master/src/Schemes/deprecated.php#L57
At least, after I commented these strings fatal error on autoload has gone.
The text was updated successfully, but these errors were encountered: