Skip to content

Added alternate Api/* class generator for non-arm systems#39

Merged
elidrissidev merged 2 commits intoShipStream:mainfrom
BelniakMedia:main
Jan 8, 2026
Merged

Added alternate Api/* class generator for non-arm systems#39
elidrissidev merged 2 commits intoShipStream:mainfrom
BelniakMedia:main

Conversation

@RickKukiela
Copy link
Copy Markdown
Contributor

Resolves issue #38

Changes:

  • Added generate-amd64.sh script which uses the composer loaded version of the elidrissidev/openapi-merge:152 package to generate the src/Api/* classes. The included generate.sh script was not compatible with my AMD64 (WSL2-Ubuntu) setup.
  • Added elidrissidev/openapi-merge:152 as a composer dev dependency (required by generate-amd64.sh).
  • Added cebe/php-openapi:1.7.0 as a composer dev dependency to lock version at 1.7.0. This was required because elidrissidev/openapi-merge depends on "^1.7.0" which results in "1.8.0" being installed which is not compatible.
  • Updated the src/Api/* classes by running generate-amd64.sh which fixes all PHP 8.4 deprecated warnings for "Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead" being triggered by the included generated classes in the current release.

…sion of the `elidrissidev/openapi-merge:152` package to generate the `src/Api/*` classes. The included `generate.sh` script was not compatible with my AMD64 (WSL2-Ubuntu) setup.

- Added `elidrissidev/openapi-merge:152` as a composer dev dependency (required by `generate-amd64.sh`).
- Added `cebe/php-openapi:1.7.0` as a composer dev dependency to lock version at 1.7.0. This was required because `elidrissidev/openapi-merge` depends on "^1.7.0" which results in "1.8.0" being installed which is not compatible.
- Updated the `src/Api/*` classes by running `generate-amd64.sh` which fixes all PHP 8.4 deprecated warnings for "Implicitly marking parameter <variable> as nullable is deprecated, the explicit nullable type must be used instead" being triggered by the included generated classes in the current release.
@colinmollenhour
Copy link
Copy Markdown
Contributor

Thanks for the PR, Rick! We'll try to review and merge soon.

@elidrissidev
Copy link
Copy Markdown
Collaborator

Hey @RickKukiela, I pushed an update to main that includes the regenerated Api/* files along with other changes. Are you able to fix the conflicts with your branch so I can merge this?

…w commits from upstream master in the generated api files.
@RickKukiela RickKukiela reopened this Jan 8, 2026
@RickKukiela
Copy link
Copy Markdown
Contributor Author

@elidrissidev I just merged your changes in and accepted your files and re-pushed/re-opened (after it auto-closed). It appears to pass now.

@elidrissidev
Copy link
Copy Markdown
Collaborator

Thanks!

@elidrissidev elidrissidev changed the title Added alternate Api/* class generator for non-arm systems & generated new Api/* classes to resolve PHP8.4 Deprecated Errors. Added alternate Api/* class generator for non-arm systems Jan 8, 2026
@elidrissidev elidrissidev merged commit adfa07b into ShipStream:main Jan 8, 2026
2 checks passed
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.

3 participants