Skip to content

feature/VMO-7721/SupportPhp81#20

Merged
AlteaDown merged 8 commits into
masterfrom
feature/VMO-7721/SupportPhp81
Mar 1, 2023
Merged

feature/VMO-7721/SupportPhp81#20
AlteaDown merged 8 commits into
masterfrom
feature/VMO-7721/SupportPhp81

Conversation

@AlteaDown

Copy link
Copy Markdown
Collaborator

Added PHP 8.1 support, as in upgrading the Viamo platform to PHP 8.1

I had identified this project does not actually support PHP 8.1, even though composer says it does, so I made it compatible with PHP 8.1.

I also added types, where supported by PHP 8.1 and where I was able to add them in bulk by IDE, especially where inheritance/abstraction/interfaces were involved, so that issues were immediately apparent.

We should release this as a major revision, so that we can drop php <8 support and laravel <8 support.

…g the Viamo platform to PHP 8.1, I had identified this project does not actually support PHP 8.1, even though composer says it does. I also added types, where supported by PHP 8.1, and especially where inheritance was involved, so that issues were immediately apparent. We should release this as a major revision, so that we can drop php <8 support and laravel <8 support.
@AlteaDown AlteaDown marked this pull request as draft February 28, 2023 17:13
…e codestyle is different in this project, and didn't notice I had the "Reformat Code" option enabled for by commit.
…ure/VMO-7721/SupportPhp81

# Conflicts:
#	src/php/Evaluator/LogicNodeEvaluator.php
…e codestyle is different in this project, and didn't notice I had the "Reformat Code" option enabled for by commit. I added support for Rector, and ran it against the project, to speed up the migration to PHP 8.1. I also found additional cases I had to handle, and made changes as necessary. Added Types wherever possible. Found an issue with Text->substitute, consulted Kyle, and then implemented the expected behaviour, as the issue became apparent when making these changes.

feature/VMO-7721/SupportPhp81 - fixed whitespace changes. I forgot the codestyle is different in this project, and didn't notice I had the "Reformat Code" option enabled for by commit. I added support for Rector, and ran it against the project, to speed up the migration to PHP 8.1. I also found additional cases I had to handle, and made changes as necessary. Added Types wherever possible. Found an issue with Text->substitute, consulted Kyle, and then implemented the expected behaviour, as the issue became apparent when making these changes.
@AlteaDown AlteaDown marked this pull request as ready for review February 28, 2023 21:38
return $ex;
}
private function peg_f1($id, $ex) { return call_user_func($this->_location); }
private function peg_f0($id, $ex) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this is a generated file so I wouldn't expect these changes to persist.

@lakhbawa

lakhbawa commented Mar 1, 2023

Copy link
Copy Markdown
Collaborator

approved

@AlteaDown AlteaDown merged commit 239c0fb into master Mar 1, 2023
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.

4 participants