Skip to content

Conversation

@adriendupuis
Copy link
Contributor

@adriendupuis adriendupuis commented Feb 16, 2023

Upgrade from PHP 7.2 to PHP 7.4

Fix Body::getExample() usage to avoid PHP Notice: Trying to access array offset on value of type null in tools/raml2html/vendor/raml-org/raml-php-parser/src/Body.php on line 231 appearing with PHP 7.4

PHP 7.4 is the minimum requirement for commonmark package:

  Problem 1
    - Root composer.json requires league/commonmark ^2.3 -> satisfiable by league/commonmark[2.3.0, ..., 2.3.9].
    - league/commonmark[2.3.0, ..., 2.3.9] require php ^7.4 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.

Patch to fix "PHP Notice:  Trying to access array offset on value of type null in /Users/adriendupuis/www/developer-documentation/tools/raml2html/vendor/raml-org/raml-php-parser/src/Body.php on line 231" appearing with PHP 7.4

PHP 7.4 is the minimum requirement for commonmark package:

  Problem 1
    - Root composer.json requires league/commonmark ^2.3 -> satisfiable by league/commonmark[2.3.0, ..., 2.3.9].
    - league/commonmark[2.3.0, ..., 2.3.9] require php ^7.4 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.
@adriendupuis adriendupuis force-pushed the stabilize-html-render-7.4 branch from 2516af3 to c748feb Compare February 16, 2023 09:38
@adriendupuis adriendupuis force-pushed the stabilize-html-render-7.4 branch from b79a57b to 98e7de2 Compare February 16, 2023 10:23
@adriendupuis adriendupuis merged commit ffc41cd into stabilize-html-render Feb 16, 2023
@adriendupuis adriendupuis deleted the stabilize-html-render-7.4 branch February 16, 2023 10:50
adriendupuis pushed a commit that referenced this pull request Feb 16, 2023
* Stabilized render of REST HTML
* raml2html: Upgrade to PHP 7.4 (#1898)
adriendupuis pushed a commit that referenced this pull request Feb 16, 2023
* Stabilized render of REST HTML
* raml2html: Upgrade to PHP 7.4 (#1898)
adriendupuis pushed a commit that referenced this pull request Feb 16, 2023
* Stabilized render of REST HTML
* raml2html: Upgrade to PHP 7.4 (#1898)

(cherry picked from commit f036958)
adriendupuis pushed a commit that referenced this pull request Feb 16, 2023
* Stabilized render of REST HTML
* raml2html: Upgrade to PHP 7.4 (#1898)

(cherry picked from commit f036958)
adriendupuis pushed a commit that referenced this pull request Feb 16, 2023
* Stabilized render of REST HTML
* raml2html: Upgrade to PHP 7.4 (#1898)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants