Closed ybelenko closed 3 years ago
@Articus I've seen your good work at #1902
Can you help with upgrade php-ze-ph
server?
I would do it myself, but there are no unit tests in php-ze-ph
generator.
We need to set PHP version to ^7.2
in composer.json
:
https://github.com/OpenAPITools/openapi-generator/blob/a4e42e1651b9f0f70ee56d40051803a73ac3c6fa/modules/openapi-generator/src/main/resources/php-ze-ph/composer.json.mustache#L8
Packagist says that zendframework/zend-expressive
package and few others are abandoned. We need to replace them with suggested packages.
Sure, but it would be better to move zendframework/zend-expressive
replacement to another issue.
It is really simple to bump minimal PHP version to 7.2 - I am like 99%-sure that everything is still working, but it will be dutiful to run tests against current minor version of PHP 7.2. Can do that before next weekend.
Replacement of zendframework/zend-expressive
is way more complex problem. All packages in zendframework
namespace were renamed - https://getlaminas.org/blog/2020-03-09-transferring-zf-to-laminas.html (for example, Zend Expressive is now Laminas Mezzio). So it will require:
php-ze-ph
template update (composer.json and namespaces in PHP code)php-ze-ph
generator renameChecked generated stub on 7.4.7 , 7.3.19 and 7.2.31 - everything works fine (manual calls of generated methods and tests for PathHandler and DataTransfer versions used in stub).
So it is safe to bump minimal PHP version to 7.2. Though technically requirement "php": "^7.1"
is still correct - stub works fine on 7.1.33 too :)
7.2 until 30 Nov 2020
Now we need to switch all PHP generators to 7.3 version, my god. 🤣
Closed in favour of #9200
PHP 7.1 reached end of life at 1 Dec 2019
PHP: Supported Versions:
It seems that we need to change minimum PHP version to 7.2 in all php generators.
Current Requirements:
cc @jebentier @dkarlovi @mandrean @jfastnacht @ackintosh @renepardon