Max Ageev
c35a229860
Remove use
2022-06-09 17:22:58 +03:00
Max Ageev
e60d2b7752
Catch even Throwable when trying to create class
...
If class require connection to database for creation for example getting state from there and saving to property.
This break psalm anaylis currently.
This case happen when CI environment does not have connection to database.
2022-06-09 17:21:57 +03:00
Andrew Nagy
813874b655
Merge branch 'master' into laravel-9-test-fixes
2022-04-07 20:01:01 +00:00
Ron Bellido
f1d1fb1a9f
phpcs fixes
2022-03-21 10:43:53 -07:00
Niels Vanpachtenbeke
ce996c6dd6
Merge branch 'master' into laravel-9
2022-03-21 09:06:21 +01:00
Niels Vanpachtenbeke
df524d651e
add missing dev package for codeception
2022-03-20 23:10:08 +01:00
Niels Vanpachtenbeke
3f0479a931
fix psalm issues
2022-03-20 23:02:31 +01:00
Ron Bellido
4b2fb46a4d
Fix whitespace
2022-03-16 09:39:21 -07:00
Ron Bellido
a0ee837fc7
Remove unused references
2022-03-15 16:59:29 -07:00
Ron Bellido
4a18811c4c
Change @return on docblock
2022-03-15 16:26:41 -07:00
Ron Bellido
b9ce78e020
Return callable
2022-03-15 16:20:14 -07:00
Ron Bellido
f2566b9b51
Fix duplicate declarations of config
2022-03-15 16:08:18 -07:00
Ron Bellido
0591299185
Merge branch 'master' into support-newer-ide-helper
2022-03-15 14:01:53 -07:00
Ernestas Kvedaras
3d9c5a7443
Add support for anonymous migrations
2022-03-01 16:30:41 +01:00
Martin Zurowietz
48c1425c86
Configure Psalm to ignore MissingFile in ApplicationProvider
...
The error was intriduced by Psalm 4.21 as it now resolves __DIR__.
It's recommended [1] to ignore the error if it happens despite an
existence check for the file.
[1] https://github.com/vimeo/psalm/issues/3886#issuecomment-663585426
2022-02-21 10:39:47 +01:00
Niels Vanpachtenbeke
74347de247
add typehinting according to the contract
2022-02-14 23:41:04 +01:00
feek
64e95fc4bf
Merge pull request #212 from Nielsvanpach/psalm
...
Fix Psalm on CI
2022-01-19 13:21:48 -05:00
Niels Vanpachtenbeke
86f26e6618
suppress
2022-01-19 10:33:54 +01:00
Niels Vanpachtenbeke
2ccac3e3e2
use PSR12 instead of PSR2
...
PSR2 is deprecated in favor of PSR12
2022-01-19 10:01:32 +01:00
Niels
85721c327c
remove unused variable
2021-11-24 21:01:11 +01:00
Niels
b620dcbb88
verify if verify has a value property
...
psalm will throw a instance property not defined error
2021-11-24 21:00:33 +01:00
fiachra mcdermott
b2b4da7325
feature: create a fake models command for 2.10.0
2021-09-16 11:37:44 -07:00
fiachra mcdermott
69add09750
refactor: extract fake models command into a provider to prepare for supporting newer versions
2021-09-16 11:23:46 -07:00
Jeremy Smith
6c425c1ac7
Updates trans return type to be string or array
2021-08-18 15:03:54 +10:00
Claas Augner
8d29e5b17a
chore: suppress RedundantCast to avoid bug
2021-07-16 23:30:37 +02:00
Claas Augner
3ac340815d
fix: suppress more issues in make:* classes
2021-07-16 21:58:34 +02:00
Cristian Giordano
3b9f8f4458
Use application for database migrations path
2021-07-15 15:31:29 +01:00
Cristian Giordano
29f33e93bc
Fix nested path
2021-07-15 15:23:35 +01:00
feek
c032e4eb8a
Merge pull request #183 from caugner/fix-unused-code
...
Suppress UnusedClass/PossiblyUnusedMethod on well-known classes/methods of fresh Laravel/Lumen projects
2021-07-13 12:39:21 -04:00
Claas Augner
aebbf15e48
refactor: generalize SuppressHandler
2021-07-13 13:07:29 +02:00
Claas Augner
74b363449f
feat: suppress well-known unused classes/methods
2021-07-13 11:51:49 +02:00
Claas Augner
8ac575bbfa
feature: support stubs per major version
2021-07-13 10:07:59 +02:00
feek
85c9086f89
Merge pull request #178 from caugner/migrate-hooks-to-eventhandlers
...
Migrate from Psalm Hooks to EventHandlers
2021-07-09 12:34:17 -04:00
feek
0e2f510f2e
Merge pull request #170 from caugner/model-@property-support
...
fix: Support @property on Model with imported type
2021-07-09 12:28:25 -04:00
Claas Augner
4e222fafac
chore: migrate from Hooks to EventHandlers
2021-07-07 20:52:59 +02:00
Claas Augner
2e290a2abb
fix: suppress PropertyNotSetInConstructor in Notifications\Notification
2021-07-07 19:40:48 +02:00
Claas Augner
b41de178af
fix: suppress NonInvariantDocblockPropertyType on Command::$description
2021-07-07 19:39:26 +02:00
Claas Augner
273411ad94
fix: suppress PropertyNotSetInConstructor in Command/FormRequest
2021-07-07 19:39:26 +02:00
Claas Augner
025a447669
fix: run ide-helper:models with --reset flag
...
This avoids that existing @property annotations are copied to
cache/models.stubphp, which caused annotated properties that use an
imported type to break, because the imports are not copied over.
2021-07-07 00:32:11 +02:00
Claas Augner
dd6d5f337a
chore: move Optional stub to /stubs
2021-07-06 23:49:31 +02:00
Claas Augner
a07dd7fae8
chore: add imports
2021-07-06 23:25:02 +02:00
Claas Augner
3d5109adb9
chore: optimize imports
2021-07-06 22:10:30 +02:00
fiachra mcdermott
da4e6bcec3
chore: analyze
2021-06-29 10:31:02 -04:00
fiachra mcdermott
3736c65592
chore: rename class
2021-06-29 00:48:24 -04:00
fiachra mcdermott
d6025435d6
chore: remove dead code
2021-06-29 00:46:26 -04:00
fiachra mcdermott
48ed05d9a0
fix: would help to require and load the handler
2021-06-29 00:45:58 -04:00
fiachra mcdermott
55da50f519
refactor: extract model property accessors into their own handler
2021-06-29 00:45:10 -04:00
fiachra mcdermott
b607d290cc
style: lint
2021-06-29 00:14:57 -04:00
fiachra mcdermott
f1f23aca03
refactor: consolidate proxy helpers into a util class
2021-06-29 00:14:13 -04:00
feek
e836b89901
wip on optional ( #122 )
...
* feature: hack in support for optional. Remove meta stub provider
Co-authored-by: Claas Augner <github@caugner.de>
2021-06-28 23:56:46 -04:00