Skip to content

Conversation

adriendupuis
Copy link
Contributor

@adriendupuis adriendupuis commented Jan 27, 2023

Question Answer
JIRA Ticket IBX-4498
Versions N/A

Update to PHP 8.0+

I moved from slightly out-dated adamwojs/raml-php-parser (forked around v4.6.1) back to raml-org/raml-php-parser for actual v4.8.1 and next versions. It should be easier to keep up-to-date using composer update than synchronising a repository. I still use modifications from Ibexa members thanks to cweagans/composer-patches. If one day, those patches are rejected, we'll improvise.

This needed some fixes in the RAML files started a bit with #1642 and mainly ended in #2042.

How-to update: default PHP must 8.2, 8.1 or 8.0 to reinstall with the following commands:

php -v; #To check actual default PHP version
cd tools/raml2html;
rm -rf var vendor composer.lock;
composer install;
cd -;

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@adriendupuis adriendupuis changed the title raml2html: Update dependencies IBX-4498: raml2html: Update dependencies Feb 1, 2023
@DominikaK DominikaK force-pushed the master branch 3 times, most recently from 33f6b7e to 2b50cbd Compare February 2, 2023 14:26
@adriendupuis adriendupuis mentioned this pull request Feb 9, 2023
7 tasks
@adriendupuis adriendupuis mentioned this pull request Feb 16, 2023
7 tasks
@adriendupuis adriendupuis changed the title IBX-4498: raml2html: Update dependencies IBX-4498: raml2html: Upgrade dependencies Feb 23, 2023
# Conflicts:
#	docs/api/rest_api/rest_api_reference/input/ez-types.raml
* Without a composer.lock
  - `composer install` installs the packages corresponding to the used PHP and generate a local composer.lock
* With a tracked composer.lock
  - `composer install` installs the PHP8.0-compatible packages. After that the build command has forward compatibility and works with PHP8.0, 8.1 and 8.2.
  - `composer update` updates to maximum package version adapted to the currently used PHP, potentially breaking backward compatibility, overwrite the composer.lock but the user shouldn't commit it while it appears in the changes: it's a trap!
@adriendupuis adriendupuis mentioned this pull request Jul 3, 2023
7 tasks
# Conflicts:
#	docs/api/rest_api/rest_api_reference/input/ez-types.raml
#	docs/api/rest_api/rest_api_reference/rest_api_reference.html
@adriendupuis adriendupuis marked this pull request as ready for review July 7, 2023 12:51
@adriendupuis adriendupuis requested a review from adamwojs July 7, 2023 12:51
@adriendupuis adriendupuis marked this pull request as draft July 7, 2023 12:56
@adriendupuis adriendupuis marked this pull request as ready for review July 7, 2023 13:01
@adriendupuis adriendupuis merged commit 2d3bcd6 into master Jul 10, 2023
@adriendupuis adriendupuis deleted the update-raml2html branch July 10, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants