* Add return type annotations
Tells PHP 8.1 not to raise the deprecation warning around mixed return types without breaking backwards compatibility with PHP 8.0 and below.
https://stackoverflow.com/a/71133750
* Specify the error level
`null` is no longer accepted in PHP 8.1
* Update dependencies for PHP 8.1 support
* Update CI PHP versions
Drop support for PHP 7.3 and add support for PHP 8.1
* Allow `composer/installers` to be installed
* Update minimum dependencies
* Update more minimum dev dependencies
* Increase minimum version of `statamic/stringy`
* Increase Timber version to release supporting 8.1
* Migrate `tightenco/collect` to `illuminate/collections` (#40)
* Ensure `dd()` and `dump()` are present
* Ensure Collections are present
1. Can use Tightenco namespace
2. Can use Illuminate namespace
3. Can use `collect()` helper
* Update to `illuminate/collections`
* Test legacy function signatures are happy
* Use a version of 8.x which supports PHP 8.1
Co-authored-by: Joe Lambert <joe@rareloop.com>
* Default the domain to ‘’ for PHP 8.1 support
This is the recommended approach to support PHP 8.1 and maintain backwards compatibility. It is also how WordPress have approached this.
* Allow custom error levels to be report only (#44)
Also added `E_DEPRECATED` to the list by default
Co-authored-by: Joe Lambert <joe@rareloop.com>
* Remove collection aliasing
---------
Co-authored-by: Joe Lambert <joe@rareloop.com>