Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong set requirments of YII #18431

Closed
mdziczkowski opened this issue Dec 11, 2020 · 12 comments
Closed

Wrong set requirments of YII #18431

mdziczkowski opened this issue Dec 11, 2020 · 12 comments

Comments

@mdziczkowski
Copy link

I want to report that requirments for Yii are set wrongly and they dosn't allow the framework to work.

For example, in many requirments is set an unnessecary set a fixed versions or a upper limits of it.

To fix this issue, please replace in the requirments that instead of fixed ones were fixed a actual version and above ( for example: >= 1.0) or that it would allow any version ("*")

Please add into the standard above requirment, plus that the notification of "^", "~", "<", "<=" won't be used anymore to preventing that Yii stop to become usable after it's components updates, with would become excluded by the limiting the version rules

@schmunk42
Copy link
Contributor

Please refer to specfic problems in eg. composer.json files.

@yii-bot
Copy link

yii-bot commented Dec 11, 2020

Thanks for posting in our issue tracker.
In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

@mdziczkowski
Copy link
Author

Please refer to specfic problems in eg. composer.json files.

I was attempting to download thru composer the avaliable templates (basic and advanced) and I had recieved errors, like for example the one, that my version of PHP (8.0) is above the set version limit (<8.0).

When I had downloaded it as archives, I had recieved the same errors when I tryed to download requirments thru composer

@bizley
Copy link
Member

bizley commented Dec 11, 2020

I've checked Yii main package and both basic and advanced templates, all require just the minimum version of PHP, not limiting the maximum one. This most probably comes from one of the additional dependencies, the question is which one. Please provide the composer message you see when trying to install dependencies.

@mdziczkowski
Copy link
Author

I paste a dump of whole download process, that you can see the whole situation from the begining to the end: pastebin dump

@Mister-42
Copy link

@mdziczkowski
Copy link
Author

mdziczkowski commented Dec 12, 2020

that's too, but the main problem is the line above it

(...) require php (...) <8.0 -> your php version (8.0.0) does not satisfy that requirement.

Note: when I was looking over the files, I saw that this limit was showing up by many dependanties, with was probably the reason of blockof download. Someone has (unessecary) set a upper limit for PHP, with blocks Yii from working after the PHP got updated to version 8

@Mister-42
Copy link

Mister-42 commented Dec 12, 2020

That's what I am referring to as well. That is https://github.com/Codeception/module-yii2.

They have a php8 version in development. And here you can see why, so it's not 'unessecary'.

@mdziczkowski
Copy link
Author

mdziczkowski commented Dec 12, 2020

the question is, why there is no info on the download page that the actual version won't work with php8? if there would be one then the issue wouldn't become reported in the first place.

Any idea about, when a working version will be avaliable ?

@Mister-42
Copy link

Mister-42 commented Dec 12, 2020

You're still barking up the wrong tree. Please report to https://github.com/Codeception/module-yii2
Also Codeception/module-yii2#17 has been created yesterday.

@samdark
Copy link
Member

samdark commented Dec 14, 2020

The Yii itself works well with PHP 8. Codeception does not yet.

@samdark
Copy link
Member

samdark commented Dec 14, 2020

Since the issue can't be solved from within Yii, closing.

@samdark samdark closed this as completed Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants