4 Commits

Author SHA1 Message Date
oleibman f1a61c4c6b Phpstan Tweaks
Phpstan level 10 reports an enormous number of errors. So does the excluded missingType.iterableValue. I do not plan to introduce either any time soon. But I will submit piecemeal changes from time to time. Changes will be mostly limited to phpdoc type declarations.
2025-04-06 18:14:59 -07:00
Adrien Crivelli bb6ae9ce7d Prevent adding PHPDoc types instead of native types
PHPDoc types can sometimes be entirely expressed as PHP native types. It
is better because it avoids code duplication and enables type runtime
check.

This will help us slowly migrate away from PHPDoc typing to PHP native typing.
2023-09-13 10:06:58 +08:00
Adrien Crivelli 6cf20b0a10 pre-commit for php-cs-fixer 3 2021-11-17 23:15:32 +09:00
Adrien Crivelli a23f681332 Add pre-commit git hook to check code style
The hook automatically fixes most code style mistakes
and should be installed once with:

```sh
ln -s ../../bin/pre-commit .git/hooks/pre-commit
```
2017-01-05 01:30:44 +09:00