Commit Graph

7 Commits

Author SHA1 Message Date
Sami Mazouz
da1bf8da21
chore(phpstan): enable phpstan in bundled extensions (#3667)
* feat(phpstan): pick up extended model relations typings
* feat(phpstan): pick up extended model date attributes
* feat(core): introduce `castAttribute` extender
Stops using `dates` as it's deprecated in laravel 8
* feat(phpstan): pick up extended model attributes through casts
* fix: extenders not resolved when declared namespace
* fix(phpstan): new model attributes are always nullable
* chore(phpstan): add helpful cache clearing command
* Apply fixes from StyleCI
* chore: improve extend files provider logic
* chore: rename `castAttribute` to just `cast`
* chore: update phpstan package to detect `cast` method
* chore: enable phpstan in bundled extensions
* chore: rebasing conflicts
* chore: rebasing conflicts
* chore: typings for latest 1.7 changes

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-01-19 21:49:38 +01:00
Alexander Skvortsov
d747946e49 Use proper Event and Service Provider extenders 2020-12-08 13:37:23 -05:00
Daniël Klabbers
e7a58e05c0 Replace leftover app()->url() with UrlGenerator 2020-10-24 21:35:31 +02:00
Alexander Skvortsov
4d10a5663f Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 21:46:07 -04:00
Franz Liedke
268c7db351 Apply fixes from StyleCI 2019-11-29 23:01:27 +00:00
Franz Liedke
b47c791e39 Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-18 00:11:36 +01:00
Toby Zerner
de3401436b Rename bootstrap.php 2018-09-21 11:45:06 +09:30