-
Notifications
You must be signed in to change notification settings - Fork 15
Draft: Add missing property types #24
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
Draft
pscheit
wants to merge
8
commits into
rowanhill:master
Choose a base branch
from
pscheit:add-missing-property-types
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
82b4915
bump version to php 7.4
pscheit e8482d9
install phpstan 2.x, configure
pscheit f080cba
create simple justfile
pscheit e2e116b
keep it simple and go level 8 and exclude the test folder for now, ca…
pscheit a4352ae
add a group to all integration tests to better selection with phpunit
pscheit 264afcf
use php7.4 locally in justfile
pscheit d1775c3
throw a better exception when Serde cannot serialize a property becau…
pscheit 801b094
try to fix all phpstan errors and baseline the rest (especially entir…
pscheit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| set dotenv-load := false | ||
| set positional-arguments | ||
|
|
||
| export COLUMNS := '550' | ||
|
|
||
| default: | ||
| @just --list | ||
|
|
||
| php := "/usr/bin/php7.4" | ||
| composer := "/usr/bin/php7.4 composer" | ||
|
|
||
| cli *args='': | ||
| {{ php }} bin/console "$@" | ||
|
|
||
| phpstan *args='': | ||
| {{ php }} vendor/bin/phpstan "${@}" | ||
|
|
||
| watch-phpstan *args='': | ||
| find src/ test/ -name '*.php' | entr {{ php }} vendor/bin/phpstan "${@}" | ||
|
|
||
| phpunit *args='': | ||
| cd test && {{ php }} ../vendor/bin/phpunit "${@}" | ||
|
|
||
| composer *args='': | ||
| {{ composer }} "${@}" | ||
|
|
||
| units: | ||
| j phpunit --exclude-group=integration | ||
|
|
||
| prep: | ||
| j phpstan | ||
| j phpunit | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| class AnyOf implements \Hamcrest\Matcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Arrays; | ||
|
|
||
| use Hamcrest\TypeSafeMatcher; | ||
|
|
||
| class IsArrayContainingKey extends TypeSafeMatcher | ||
| {} | ||
|
|
||
| class IsArrayWithSize extends \Hamcrest\FeatureMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest; | ||
|
|
||
| abstract class BaseMatcher implements Matcher | ||
| { | ||
| public function describeMismatch(mixed $item, Description $description): void {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest; | ||
|
|
||
| interface Description | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest; | ||
|
|
||
| abstract class FeatureMatcher extends TypeSafeDiagnosingMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| use Hamcrest\BaseMatcher; | ||
|
|
||
| class IsAnything extends BaseMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| use Hamcrest\BaseMatcher; | ||
|
|
||
| class IsEqual extends BaseMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| class IsIdentical implements \Hamcrest\Matcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| class IsInstanceOf implements \Hamcrest\Matcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Text; | ||
|
|
||
| use Hamcrest\TypeSafeMatcher; | ||
|
|
||
| class IsNonEmptyString extends TypeSafeMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| use Hamcrest\BaseMatcher; | ||
|
|
||
| class IsNot extends BaseMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest\Core; | ||
|
|
||
| use Hamcrest\BaseMatcher; | ||
|
|
||
| class IsTypeOf extends BaseMatcher | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <?php | ||
|
|
||
| namespace Hamcrest; | ||
|
|
||
| interface Matcher extends SelfDescribing | ||
| { | ||
| public function matches(mixed $item): bool; | ||
| public function describeMismatch(mixed $item, Description $description): void; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| <?php | ||
| namespace Hamcrest; | ||
|
|
||
| class Matchers | ||
| { | ||
| /** | ||
| * @return \Hamcrest\Core\IsEqual | ||
| */ | ||
| public static function equalTo(mixed $item) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\AnyOf | ||
| */ | ||
| public static function anyOf(/* args... */) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\IsTypeOf | ||
| */ | ||
| public static function typeOf(mixed $item) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\IsIdentical | ||
| */ | ||
| public static function identicalTo(mixed $item) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Arrays\IsArrayContainingKey | ||
| */ | ||
| public static function hasKeyInArray(mixed $keyMatcher) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\IsAnything | ||
| */ | ||
| public static function anObject() | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\IsNot | ||
| */ | ||
| public static function not(mixed $matcher) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Text\IsEmptyString | ||
| */ | ||
| public static function nonEmptyString() | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Text\StringContains | ||
| */ | ||
| public static function containsString(mixed $substring) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Arrays\IsArrayWithSize | ||
| */ | ||
| public static function arrayWithSize(mixed $sizeMatcher) | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Text\IsEmptyString | ||
| */ | ||
| public static function isNonEmptyString() | ||
| {} | ||
|
|
||
| /** | ||
| * @return \Hamcrest\Core\IsInstanceOf | ||
| */ | ||
| public static function anInstanceOf(mixed $className) | ||
| {} | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my next Project is then to type Hamcrest ;)