1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
Go to file
Melech Mizrachi f553392454 Fix a false flag issue with InvalidConstantAssignmentValue being thrown for constants over a certain length. Usually happens with arrays or lists over 100+ entries in length.
Check if this type was defined via a dockblock or type hint otherwise the inferred type should always match the assigned type, and we don't even need to do additional checks
There is an issue with constants over a certain length where additional values are added to fallback_params in the assigned_type but not in const_storage_type which causes a false flag for this error to appear. Usually happens with arrays/lists.

Added two separate tests to cover both lists, and arrays to ensure this issue is fixed.
2024-02-23 11:25:34 -07:00
.circleci Fix circleCI builds 2023-11-22 15:27:19 +01:00
.github Clarify that Pull request labels failure is to be resolved by maintainers 2024-02-03 23:07:52 +01:00
assets/psalm-phar
bin use branch name to randomize tests to ensure test dependencies will error 2023-11-29 08:56:31 +01:00
build/phpunit
dictionaries Merge pull request #10091 from vudaltsov/improve-refelection-stubs 2024-02-07 22:18:56 -04:00
docs Fix RiskyTruthyFalsyComparison reporting irrelevant errors when there is no explicit truthy/falsy type 2024-02-20 22:28:12 +01:00
examples Finalize all internal classes 2023-10-26 17:00:29 +02:00
src/Psalm Fix a false flag issue with InvalidConstantAssignmentValue being thrown for constants over a certain length. Usually happens with arrays or lists over 100+ entries in length. 2024-02-23 11:25:34 -07:00
stubs Allow Override attribute to be used in pure contexts 2024-02-21 12:25:30 +01:00
tests Fix a false flag issue with InvalidConstantAssignmentValue being thrown for constants over a certain length. Usually happens with arrays or lists over 100+ entries in length. 2024-02-23 11:25:34 -07:00
vendor-bin Update BCC 2022-12-20 23:50:01 -04:00
.appveyor.yml
.editorconfig
.gitattributes Include docs with vendor dist 2022-11-08 20:35:26 -05:00
.gitignore merge to v5 2022-12-20 20:52:25 +00:00
box.json.dist Bake version data into PHAR file 2022-11-26 00:00:43 -04:00
CODE_OF_CONDUCT.md
composer.json Merge pull request #10639 from simPod/diff 2024-02-03 15:01:10 -04:00
config.xsd Add MissingOverrideAttribute issue 2024-02-04 21:07:22 +13:00
CONTRIBUTING.md
keys.asc.gpg
LICENSE
phpcs.xml Remove occurrences 2022-12-21 06:45:45 -06:00
phpunit.xml.dist @psalm-api 2022-12-23 16:13:46 -06:00
psalm
psalm-baseline.xml Forbid constructors from returning any values 2024-02-10 01:34:51 +01:00
psalm-language-server
psalm-plugin
psalm-refactor
psalm.xml.dist code review add die to forbidden functions for psalm itself 2024-02-05 08:19:23 +01:00
PsalmLogo.png
psalter
README.md Add support for strict arrays, fix type alias intersection, fix array_is_list assertion on non-lists (#8395) 2022-11-05 22:34:42 +01:00
scoper.inc.php Update humbug/box 2022-11-25 23:58:41 -04:00
UPGRADING.md Replace some LNumber usages 2022-12-19 22:14:32 +01:00

Psalm

Packagist Packagist Psalm coverage Psalm level

Psalm is a static analysis tool for finding errors in PHP applications.

Installation

To get started, check out the installation guide.

Live Demo

You can play around with Psalm on its website.

Documentation

Documentation is available on Psalms website, generated from the docs folder.

Interested in contributing?

Have a look at CONTRIBUTING.md.

Who made this

Built by Matt Brown (@muglug).

Maintained by Orklah (@orklah), Daniil Gentili (@danog), and Bruce Weirdan (@weirdan).

The engineering team at Vimeo have provided a lot encouragement, especially @nbeliard, @erunion and @nickyr.