Commit Graph

11 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
63a71d58c5 Apply fixes from StyleCI 2021-03-13 20:36:07 +00:00
Alexander Skvortsov
668de47095 Update for search filter split 2021-03-13 15:35:53 -05:00
Alexander Skvortsov
b7034c707d Use new policy extender, move deprecated event listener back to old style callback 2020-12-08 14:34:11 -05:00
Sami Mazouz
c0e0c7f3c7 Use new extenders (#26) 2020-12-08 14:21:00 -05:00
Sami Mazouz
47284b85bc Use the new Notification type extender (#25) 2020-10-31 18:42:46 -04:00
Alexander Skvortsov
541b1a59d3 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:54:38 -04:00
Franz Liedke
1424fd2211 Apply fixes from StyleCI 2019-11-29 23:02:10 +00:00
Franz Liedke
c22c74553f Get rid of event subscribers that resolve services too early
Refs flarum/core#1578.
2018-12-15 17:09:44 +01:00
Toby Zerner
ac6d9418e1 Remove obsolete permission logic
flarum/core#1513 changes the post.edit permission so that it is only
granted if the user also has permission to reply to the discussion. This
means that explicitly revoking the edit permission is no longer
necessary, as it will never be granted in the first place.
2018-09-22 12:19:07 +09:30
Toby Zerner
4aa0729d67 Rename bootstrap.php 2018-09-21 11:47:09 +09:30