Comments (9)
Okay, I've opened #85 with psr/[email protected]
I also implemented 2.0 [0], but literally none of the libraries we test against are using it yet and it totally breaks them, so probably should hold off on that.
from php-psr.
@jbboehr the change done in a minor version was perfectly valid, thanks to variance rules.
The issue is that enabling this extension ignores entirely the package requirements (as the interface at the version selected by composer won't be loaded at all).
This extension basically defeats any attempt of versioning the PSR packages.
from php-psr.
Is this works for you:
{
"require": {
"ext-psr": "*"
},
"provide": {
"psr/container": "^1"
},
}
from php-psr.
@sergeyklay No, that would just uninstall the psr/container
package.
from php-psr.
Well, as far as I know, this is usually what you should do anyway. Otherwise, you end up with two sources providing the same interface.
from php-psr.
Kinda surprised they would change the interface in a non-major version. Looks like there's a 2.0 version out. I suppose we should update. Can you foresee any compatibility issues with phalcon @sergeyklay ?
from php-psr.
Based on my reading of the mailing list at the time, it was my understanding that breaking interface changes would be published as a new library (e.g. psr/container2). It looks like they are not doing this.
from php-psr.
@jbboehr Could you create separate branch with updated interfraces so I could test it?
In case if this interfaces changes will break something from our side we will wait for new release from you. As we are almost ready to release Phalcon with PHP8 support: phalcon/cphalcon#15287
from php-psr.
The issue is that enabling this extension ignores entirely the package requirements (as the interface at the version selected by composer won't be loaded at all).
This extension basically defeats any attempt of versioning the PSR packages.
This is just how extensions work and there is no resolution unless composer provides support for managing extensions. And well, I foolishly wasn't expecting there to ever be another version of a PSR without it being published as a new PSR in another namespace.
from php-psr.
Related Issues (20)
- Auto detect .ini dir HOT 7
- Add example on how to use logger traits in an extension HOT 3
- ServerRequestInterface not implements RequestInterface methods? HOT 1
- Failed tests with PHP 5.6 HOT 5
- Is TestLogger missing HOT 3
- Thank you from Phalcon HOT 1
- PECL still says latest release is version 0.6.0 HOT 3
- PSR v7.0 fails with "symbol lookup error" HOT 2
- Failed to install with PHP 7.4 HOT 3
- 1.0? HOT 5
- Clarification on the purpose of this extension. HOT 5
- Incorrect default value for methods in \Psr\Log\LoggerInterface HOT 7
- New release with PHP 8 support? HOT 2
- Error with make when installing on macOS HOT 5
- Compatibility with newer psr libraries HOT 8
- This extension causes major compatibly issues HOT 17
- Not compatible with PHP <7.3
- Declaration of `Psr\Http\Message\StreamInterface::__toString()` must be compatible with `Stringable::__toString()` HOT 2
- php-7.2 build psr.so extension error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-psr.