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

V2.0 #104

Merged
merged 103 commits into from
Aug 8, 2024
Merged

V2.0 #104

merged 103 commits into from
Aug 8, 2024

Conversation

phily245
Copy link
Contributor

@phily245 phily245 commented Aug 7, 2024

Pulling the v2.0 branch into the main branch in order to release v2.0.

Please have a critique.

#86

phily245 and others added 30 commits July 19, 2024 11:11
This will allow us to use > phpunit 10.0, as the breaking changes in
there stopped us going higher on the test framework meaning that we
couldn't support testing supported versions of Laravel. There are still
test deprecations on here, but I'll deal with these at a later date
I'm anticipating standards being added to CI
This will allow us to run tests on the currently supported Laravel
versions in CI
This will let us test v2 in CI. I will reomve this before the PR to
master
I shouldn't have committed this
This is a bash command, not PHP
This is needed to drop support for < Laravel/Lumen 10
I would like my changes to go through the standard test flow
This should let composer complete
CI was failing on Laravel 10 with PHP 8.2, the require coimmand will do
an install for us
The require does an install for us
We will no longer get warnings when tests run. I also took the
opportunity to move these to camel case from snake case so it aligns
more with PSR standards
This helps to make the cvode stricter and let the IDE know what is going
on
This brings stricter coding
This will make behaviour more consistent and allow IDE typehinting/error
detection
Swap sensiolabs/security-checker for enlightn/security-checker as the
sensiolabs one is now abandoned.

Co-authored-by: Steve Richter <[email protected]>
Very minor updates to make the code a bit cleaner
This was me commiting test code by accident
We now have all the suggested packages
This can now use the latest verisons
This wil not be allowed when CI checks standards
This can now include `Error`s
This will allow me to make future additional CI jobs more sucinct
phily245 and others added 28 commits July 24, 2024 14:16
We can start tipdying the code thanks to static analysis
These checks basic checks, unknown classes, unknown functions, unknown
methods called on $this, wrong number of arguments passed to those
methods and functions, always undefined variables
There were no changes for level 1, so I've moved to level 2 and fixed
the code for that.

Level 1:

possibly undefined variables, unknown magic methods and properties on
classes with __call and __get

Level 2:

unknown methods checked on all expressions (not just $this), validating
PHPDocs
THis is the next level bump for Larastan.

Level 3:

return types, types assigned to properties
This is the next Larastan bump.

Level 4:
Basic dead code checking - always false instanceof and other type
checks, dead else branches, unreachable code after return; etc.
Larastan has reminded me it is good to be explicit
We can allow test files to not be included in this as is the nature of
tests. "with" is also usd as a setter, so we can keep that out too
This is the next Larastan bump.

Level 5:
Checking types of arguments passed to methods and functions
This is the next & final (at least for now) Larastan bump.

Level 6:
report missing typehints
This will now pass CI, good suggestions
This will enforce the new coding standard
The optional depedencies in here add a layer of complexity which we
don't want to handle
This covers the new tooling we've introduced in v2
This is the list of changes we'll be including in v2
This is indented to match the rest of the code
This offers more context to a first time reader
It will always be 1 as it is 1 object, we neede the array from this
@phily245 phily245 merged commit 1ce0ad7 into master Aug 8, 2024
16 checks passed
@phily245 phily245 deleted the v2.0 branch August 8, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant