John Paul E. Balandan, CPA
c3ac0f9483
chore: add more trailing commas in more places ( #9395 )
...
* Apply to parameters
* Apply to array destructuring
* Apply to match
* Apply for arguments
2025-01-13 11:03:02 +08:00
neznaika0
155f1c14de
refactor: Fix phpstan codeigniter.configArgumentInstanceof ( #9390 )
2025-01-13 10:52:54 +08:00
neznaika0
e3a139db12
refactor: Fix phpstan method.impossibleType ( #9384 )
...
* refactor: Fix phpstan method.impossibleType
* refactor: Fix phpstan method.notFound for EventsTest
* fix: Run fixer
2025-01-10 21:12:42 +08:00
neznaika0
131c5ebeee
refactor: Fix phpstan method.unused ( #9388 )
2025-01-10 21:11:41 +08:00
Abdul Malik Ikhsan
e5f215c1dc
refactor: regenerate baseline
2025-01-10 19:49:41 +07:00
neznaika0
708fb6d70a
refactor: Fix phpstan always true ( #9367 )
2025-01-10 11:29:32 +08:00
neznaika0
42a00ff9d2
refactor: Fix phpstan return.missing ( #9382 )
2025-01-09 07:55:29 +08:00
neznaika0
9de985651a
refactor: Fix phpstan isset.offset ( #9383 )
2025-01-09 00:10:43 +08:00
neznaika0
72b7f8a0dd
refactor: Fix phpstan return.type ( #9375 )
...
* refactor: Fix phpstan return.type
* refactor: Fix phpstan return.type
2025-01-09 00:09:58 +08:00
neznaika0
3eb8a09514
refactor: Fix phpstan expr.resultUnused ( #9385 )
2025-01-09 00:04:11 +08:00
Abdul Malik Ikhsan
dd08f953d1
Merge pull request #9374 from neznaika0/refactor/phpstan-nullCoalesce
...
refactor: Fix phpstan nullCoalesce
2025-01-07 19:51:27 -08:00
neznaika0
6d04e1dd71
refactor: Fix phpstan nullCoalesce
2025-01-07 23:23:27 +03:00
neznaika0
cd27b6aa7f
refactor: Fix phpstan class.notFound ( #9376 )
2025-01-06 21:22:55 +08:00
neznaika0
08540f7688
refactor: Fix phpstan function.inner ( #9377 )
2025-01-06 21:22:36 +08:00
neznaika0
f61361d4db
refactor: Fix phpstan generator.returnType
2025-01-05 20:40:55 +03:00
neznaika0
33110c5829
refactor: Fix phpstan greaterOrEqual.invalid ( #9370 )
2025-01-04 22:39:08 +08:00
neznaika0
a6d9716341
refactor: Fix phpstan unset string key
2025-01-04 14:17:39 +03:00
neznaika0
db12ec3cbf
refactor: Fix phpstan condNotBoolean ( #9368 )
2025-01-04 17:54:40 +08:00
neznaika0
91e788a79c
refactor: phpstan function.notFound ( #9366 )
2025-01-04 17:54:04 +08:00
John Paul E. Balandan, CPA
d7ce2ba7d3
fix: Forge::dropColumn()
always returns false
on SQLite3 driver ( #9351 )
2024-12-31 18:41:07 +08:00
Abdul Malik Ikhsan
ee4ee987b1
refactor: enable instanceof and strictBooleans rector set ( #9339 )
...
* refactor: enable instanceof and strictBooleans rector set
* refactor: bump to rector 2.0.4
* refactor: clean condition check
* refactor: revert ThirdParty change
* refactor: re-run phpstan baseline
* refactor: fix never empty array on Image
* refactor: avoid repetitive call pg_last_error()
* refactor: pg_last_error() always returns string
* refactor: use return empty string on pg_last_error() got empty "0"
* refactor: various compare !== 1 on preg_match()
* refactor: use falsy check on getenv()
* refactor: more !== 1 compare on preg_match()
* refactor: use empty string check on guessExtension
* refactor: run cs fix
* refactor: more !== 1 compare on preg_match()
* use direct result of pg_last_error()
* refactor: use str_contains() over strpos on Forge
* refactor: fix unused variable
* refactor: check empty string on ResponseTrait
* refactor: more preg_match() and empty string only check
* refactor: compare to 0 on preg_match_all()
* refactor: re-run rector
* refactor: preg_match_all() likely less to return false
2024-12-28 23:16:32 +08:00
neznaika0
8cff0995de
refactor: fix phpstan
only boolean allowed ( #9302 )
...
* refactor: Fix `phpstan` boolean errors
* fix: Check predis response
* refactor: Improve comparison with an empty string
* dev: Update phpstan-baseline
* fix: Revert comparison with null
2024-12-28 20:21:06 +08:00
John Paul E. Balandan, CPA
19ad2b99cc
refactor: fix used void return type ( #9341 )
2024-12-28 14:31:01 +08:00
John Paul E. Balandan, CPA
2114577483
refactor: fix warning on new static usage
2024-12-27 23:24:05 +08:00
John Paul E. Balandan, CPA
cc1b8f2856
refactor: add @throws RedirectException
in Controller::initController ( #9327 )
2024-12-19 16:33:56 +08:00
John Paul E. Balandan, CPA
f48aa6f61e
refactor: fix Forge::processIndexes()
for empty $this->fields
( #9330 )
2024-12-19 16:07:05 +08:00
John Paul E. Balandan, CPA
242745c661
refactor: split phpstan-baseline into smaller files ( #9299 )
...
* refactor: split phpstan-baseline into smaller files
* Checkout base branch to resolve codeigniter4/framework
* Fix rector changes
2024-12-15 08:38:40 +08:00
Abdul Malik Ikhsan
94e57df8f5
chore: preparation for PHPStan 2: remove CheckUseStatementsAfterLicenseRule
2024-12-13 23:47:37 +07:00
Abdul Malik Ikhsan
3e672fadc6
refactor: enable FlipTypeControlToUseExclusiveTypeRector
2024-11-05 05:03:14 +07:00
kenjis
d12af0a4b4
chore: update php-cs-fixer to ^3.63.2
2024-08-29 09:34:24 +09:00
kenjis
6eaaa60a28
chore: workaround for php-cs-fixer 3.63
2024-08-27 09:37:40 +09:00
John Paul E. Balandan, CPA
90ea5c7cc1
Move phpstan and rector to root composer.json
2024-07-23 20:58:52 +08:00
John Paul E. Balandan, CPA
8609136924
Fix psalm errors
2024-07-23 20:58:52 +08:00
John Paul E. Balandan, CPA
e7b7686405
Fix rector errors
2024-07-23 20:58:51 +08:00
John Paul E. Balandan, CPA
368bffa94a
Fix phpstan errors
2024-07-23 20:58:51 +08:00
John Paul E. Balandan, CPA
ed01a7e7f3
Move tools' dependencies to separate utils directory
2024-07-23 20:58:51 +08:00
kenjis
e0d2cff888
chore: add file permission check workflow
2024-05-30 11:55:41 +09:00
kenjis
e25bc7e7a7
refactor: run rector
2024-04-06 09:24:47 +09:00
John Paul E. Balandan, CPA
06353a4037
style: Enable phpdoc_list_type
fixer
2024-02-26 00:19:02 +08:00
John Paul E. Balandan, CPA
609be527ce
style: enable phpdoc_array_type
( #8580 )
2024-02-25 22:58:47 +08:00
Abdul Malik Ikhsan
d5fb953dd7
update Rector\Core subnamespace to Rector
2024-01-09 22:17:42 +07:00
kenjis
6153d4dffc
chore: remove RemoveVarTagFromClassConstantRector class
2023-11-21 13:02:13 +09:00
Abdul Malik Ikhsan
aed2800f94
[Rector] Fix deprecated dynamic pull phpDocInfoFactory from AbstractRector on UnderscoreToCamelCaseVariableNameRector
2023-11-13 17:08:06 +07:00
Abdul Malik Ikhsan
8eaba9b0c4
Fix dependency set
2023-09-26 22:40:57 +07:00
John Paul E. Balandan, CPA
042eaaaffb
Use phpstan-codeigniter
2023-09-11 16:09:29 +08:00
Abdul Malik Ikhsan
3dc315f7cb
Fix php syntax on php 7.4 compat
2023-07-09 19:58:39 +07:00
Abdul Malik Ikhsan
416312e22d
[Rector] Remove findParentType() on UnderscoreToCamelCaseVariableNameRector
2023-07-09 19:56:13 +07:00
Abdul Malik Ikhsan
14171bf703
[Rector] Remove findParentType() on RemoveErrorSuppressInTryCatchStmtsRector
2023-07-09 19:01:26 +07:00
Abdul Malik Ikhsan
47990ba74b
[Rector] Refactor UnderscoreToCamelCaseVariableNameRector as removed findParentByType()
2023-07-07 16:21:03 +07:00
John Paul E. Balandan, CPA
eb440742eb
Apply formatting fixes
2022-09-03 19:44:54 +08:00