Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 #199

Merged
merged 306 commits into from
Dec 14, 2023
Merged

V3 #199

merged 306 commits into from
Dec 14, 2023

Conversation

timvandijck
Copy link
Member

@timvandijck timvandijck commented Aug 25, 2023

This is a draft PR for the new v3 release of the Image package.

Goal: be less reliant on dependencies while retaining the powerfull API the package already provides.

Still to implement:

To document:

  • pickColor
  • base64
  • colorize
  • overlay

Not needed anymore

@nlemoine
Copy link
Contributor

This is great news! Any chance you can downgrade the minimum PHP requirement to 8.1? Tests seem to run fine for that version too.

freekmurze and others added 27 commits November 29, 2023 08:46
* init phpstan

* fix first set of issues

* add todo for missing use case

* explicitly transform floats to int

* imagepng() expects quality param to be an integer between 0 and 9

* method returns float, variable where stored is also typed as float

* define array structures

* add more array type hints

* change interface params to match the actual implementations

* Fix styling

* add phpstan workflow

* change missing types to int|float

* Fix styling

* move exif stuff to baseline

* replace intval() with (int)

(int) is consider the best practice as it is up to 6x faster

* Fix styling

* int/float fixes

* Fix styling

---------

Co-authored-by: Nielsvanpach <Nielsvanpach@users.noreply.github.com>
* remove positive_int annotations

will fail on a 0 value

* alpha values can be floats

* increase phpstan level + fixes

* Fix styling

* exclude relevant phpstan issues from baseline

---------

Co-authored-by: Nielsvanpach <Nielsvanpach@users.noreply.github.com>
@freekmurze freekmurze marked this pull request as ready for review December 14, 2023 12:06
@freekmurze freekmurze merged commit ffa6e07 into main Dec 14, 2023
5 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
4 participants