Bruce Weirdan
026354a18e
Enforce arrow function formatting
2022-11-23 00:08:29 -04:00
Matthew Brown
8d36bdc3ed
Make array shapes strict by default ( #8701 )
...
* Make array shapes strict by default
* Fix PSL tests
2022-11-11 20:14:21 -05:00
Matthew Brown
d63da1f66e
Prevent array{a: Foo} going cleanly into array<Foo> ( #8691 )
...
* Prevent array{a: Foo} going cleanly into array<Foo>
* Add test for new behaviour
* Fix code style issues
* Allow unions to be cloned again
* Simplify params properties
2022-11-10 09:18:27 -05:00
Christian Schiffler
5fd2090526
Add update script and update property map
...
See #7983
2022-06-29 09:23:45 +02:00
Matthew Brown
0a81f8cd6c
Use objects, not strings, for assertions ( #7410 )
...
* Use objects, not strings, for assertions
* Remove unnecessary param
* Remove some unnecessary checks
* Fix bad find/replace
* Add note about assertions no longer stored as strings in UPGRADING.md
2022-01-20 17:33:06 -05:00
Bruce Weirdan
8726065d21
Applied ClosureToArrowFunctionRector
2022-01-06 00:48:04 +02:00
Bruce Weirdan
e4c16c10e7
Enforce [...]
usage instead of list(...)
2022-01-05 23:32:01 +02:00
Bruce Weirdan
dfb14cbe87
Enforce null-coalesce operators
2022-01-05 13:21:30 +02:00
Bruce Weirdan
d30d527aeb
Ensure separator is used for long numbers
...
I would like to set minDigitsBeforeDecimalPoint to 4, but it causes
false positives with octal numbers (slevomat/coding-standard#1324 ).
2022-01-05 04:11:52 +02:00
rarila
c0ca60f196
Remove superflous exclude pattern
2021-12-15 22:12:40 +01:00
rarila
d8dc542b9f
Rule: Namespaces.AlphabeticallySortedUses.psr12Compatible = true
2021-12-15 05:11:15 +01:00
rarila
099245281e
Rule: Enforce number of lines before and after namespace.
2021-12-15 04:55:08 +01:00
rarila
9fd1721e08
Rule: Enforce formatting of namespace.
2021-12-15 04:50:26 +01:00
rarila
5785a1e4fa
Rule: Requires only one namespace in a file.
2021-12-15 04:46:39 +01:00
rarila
79e4a19f92
Add rules for declare(strict_types=1)
2021-12-15 04:40:34 +01:00
rarila
39402c233d
Return type hints ( #7065 )
...
Co-authored-by: ralila <>
2021-12-05 19:51:26 +02:00
ralila
f833085a15
Fix fqn usage in php-doc
2021-12-04 03:37:19 +01:00
ralila
d5d277f579
Set further phpcs fqn options
2021-12-03 22:44:41 +01:00
ralila
30a65685a2
Import instead of using fqn classes
2021-12-03 21:40:18 +01:00
ralila
7c32325e03
Import instead of using fqn constants
2021-12-03 21:25:22 +01:00
ralila
2a956498bf
Import instead of using fqn functions
2021-12-03 21:07:25 +01:00
ralila
711be643c6
Import instead of using fqn exceptions
2021-12-03 20:29:06 +01:00
ralila
245920e53c
Import instead of using fqn
2021-12-03 20:11:20 +01:00
ralila
3f7fbdfefb
Update phpcs config
2021-12-02 17:42:50 +01:00
rarila
bc11b10d9b
Beautified phpcs.xml ( #7041 )
...
Co-authored-by: ralila <>
2021-12-01 23:46:10 +02:00
sasezaki
5a01c8d601
Added phpcs SelfMemberReference rule, and applied
2021-11-07 15:47:39 +09:00
Bruce Weirdan
6abce3525a
Enforce use
sort ( #5900 )
2021-06-07 22:55:21 -04:00
Bruce Weirdan
4b8bff45bd
Forbid unused uses in Codebase\Scanner ( #5717 )
2021-05-06 14:31:28 -04:00
Matthew Brown
832a190dd4
Support enums ( #5699 )
...
* Add initial enum preparation
* Support cases method
* Ignore bad use error
cc @weirdan
* Fix type
2021-05-03 17:54:09 -04:00
Bruce Weirdan
105c6f3a1c
Remove (and prevent) unused uses ( #5704 )
...
* Updates `slevomat/coding-standard`
* Removes unused uses
* Prevents unused uses
* Fixes a number of symbol case mismatches
2021-05-03 17:22:15 -04:00
Matt Brown
ea314cc1c0
Simplify calling of replacer methods
2020-11-29 16:27:00 -05:00
Matt Brown
08586c47c1
Remove deleted path
2020-10-12 15:17:22 -04:00
Matthew Brown
8f421dc0bb
Refactor template calculation out from Psalm\Type\Union
2019-11-03 21:27:40 -05:00
LeSuisse
f29826b958
Fully qualify constants and function calls ( #1849 )
...
This should give a small performance boost.
Part of #1837 .
The change is enforced via phpcs and can be autofixed
with phpcbf.
2019-06-26 16:52:29 -04:00
Brown
335b04186b
Add autodiscovery of --init folders based on composer.json
2019-05-09 19:19:33 -04:00
Brown
d75ac7f55d
Move test fixtures to a single directory
2019-05-09 18:23:14 -04:00
Matthew Brown
4688b25fd9
Move internal classes to own namespace
2018-11-12 11:20:59 -05:00
Brown
54fdda651b
Add server mode support with error reporting only
2018-10-17 15:54:31 -04:00
Matthew Brown
5ea8b86b7c
Resolve as many names as possible in the parsing stage
2018-07-12 21:25:06 -04:00
Matthew Brown
1a97f69d32
Allow longer lines in tests
2018-04-12 22:40:47 -04:00
Matt Brown
6ce4aa19e4
Fix formatting in examples
2018-01-18 17:41:14 -05:00
Jon Ursenbach
f65c618b2e
PSR-2 adjustments and adding PHPCS checks into the Travis config. ( #149 )
...
* PSR-2 adjustments and adding PHPCS checks into the Travis config.
* Reverting some CallChecker changes and no longer casting vars to null.
2017-04-28 00:31:55 -04:00
Matthew Brown
03141e41c2
Move string-stored types into named classes
2017-01-15 10:22:05 -05:00
Jon Ursenbach
27c2db1d1d
PSR-2
2016-11-02 17:50:54 -04:00