Skip to content

Conversation

@bram-pkg
Copy link
Contributor

@bram-pkg bram-pkg commented Sep 7, 2025

As promised in #57, here's a PR that makes the codebase a lot more modern.

@freekmurze what do you think about the minimum PHP version? Same as the minimum of L12?

Breaking changes are mainly if you override the GTM class, you'll need to add types.

I also removed support for the "macroPath" config option, which seemed a bit silly considering users can just implement that themselves by doing a require_once in their AppServiceProvider.

@bram-pkg bram-pkg marked this pull request as ready for review September 7, 2025 23:58
@freekmurze
Copy link
Member

This looks very good, thanks! 👍

what do you think about the minimum PHP version? Same as the minimum of L12?
Generally speaking I don't mind requiring the latest and greatest version of PHP for a package / new major

Could you either update the PHP restraint in composer.json to PHP 8.4 or update the test workflow to run tests for 8.2, 8.3, 8.4

Could you also add an UPGRADE.md file with upgrade instructions for current users? Can be a rough description of the changes needed.

@bram-pkg
Copy link
Contributor Author

bram-pkg commented Sep 8, 2025

Hi, I'll make an UPGRADE.md, and the tests already run at 8.2, 8.3, and 8.4? I think you might have been looking at the static analysis workflow - which is probably fine to only run on one version?

@bram-pkg
Copy link
Contributor Author

bram-pkg commented Sep 8, 2025

Added an upgrade guide now, I checked other spatie repos and they seem to call it "UPGRADING.md" so I just followed that convention.

@freekmurze
Copy link
Member

Hi, I'll make an UPGRADE.md, and the tests already run at 8.2, 8.3, and 8.4? I think you might have been looking at the static analysis workflow - which is probably fine to only run on one version?

Ah yes indeed... That's fine!

@freekmurze freekmurze merged commit 644d844 into spatie:main Sep 12, 2025
9 checks passed
@freekmurze
Copy link
Member

Thanks!

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