1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
Go to file
Thomas Gerbet 4b1adaafec Allow *bin2hex and *bin2base64 functions to keep non-empty-string type
Those functions should not return a string when they receive a
non-empty-string in input.

The following example is expected to work:
```php
<?php

/**
 * @param non-empty-string $i
 */
function takesNonEmptyString(string $i): void {
    echo $i;
}

takesNonEmptyString(bin2hex("a"));
takesNonEmptyString(base64_encode("a"));
```
2022-08-23 16:38:17 +02:00
.circleci Remove latest PHPUnit from 4.x projects 2022-04-27 11:50:11 -04:00
.github Merge pull request #8210 from vimeo/dependabot/github_actions/actions/checkout-3 2022-06-30 19:30:34 +02:00
assets/psalm-phar Fix other check 2020-12-29 12:57:09 +00:00
bin remove usage of totallyTyped internally 2022-02-12 09:51:06 +01:00
build/phpunit
dictionaries Merge pull request #8405 from vjik/get-modifiers-name 2022-08-12 18:53:47 +02:00
docs Fix typos 2022-08-20 23:29:03 +02:00
examples phpdoc issues 2021-12-27 22:30:10 +01:00
src Restore CliUtils.php 2022-08-22 16:59:27 +02:00
stubs Allow *bin2hex and *bin2base64 functions to keep non-empty-string type 2022-08-23 16:38:17 +02:00
tests fix test 2022-08-22 16:58:23 +02:00
vendor-bin/box Allow composer-versions-deprecated in box build env 2021-12-26 09:30:27 +02:00
.appveyor.yml Fix disabling of appveyor auto build 2022-03-18 12:31:35 +01:00
.editorconfig
.gitattributes Update .gitattributes 2022-01-30 00:23:28 +02:00
.gitignore [FEATURE] Allow plugins to declare their custom scanner or analyzer (#5883) 2021-06-04 15:32:53 -04:00
.scrutinizer.yml
box.json.dist Cli command classes (#5858) 2021-05-31 22:23:54 -04:00
CODE_OF_CONDUCT.md
composer.json add test for ignore list cleanup 2022-06-22 12:59:47 +02:00
config.xsd Merge pull request #7433 from zoonru/maximum_shaped_array_size 2022-03-15 21:19:05 +01:00
CONTRIBUTING.md
keys.asc.gpg Change GPG key 2021-01-11 13:36:23 -05:00
LICENSE
phpcs.xml Remove superflous exclude pattern 2021-12-15 22:12:40 +01:00
phpunit.xml.dist wip: lots of fixes to the callmap 2022-06-14 15:16:13 +02:00
psalm replace fully qualified names by imports 2021-12-27 22:30:10 +01:00
psalm-baseline.xml Suppress UnusedClass 2022-02-01 00:06:25 +02:00
psalm-language-server replace fully qualified names by imports 2021-12-27 22:30:10 +01:00
psalm-plugin replace fully qualified names by imports 2021-12-27 22:30:10 +01:00
psalm-refactor replace fully qualified names by imports 2021-12-27 22:30:10 +01:00
psalm.xml.dist Revert "Merge pull request #7239 from DeyV/master" 2022-01-08 22:26:24 +02:00
PsalmLogo.png
psalter replace fully qualified names by imports 2021-12-27 22:30:10 +01:00
README.md Updated list of current maintainers 2021-12-05 04:48:06 +02:00
scoper.inc.php Improve scoping a bit more 2022-03-07 16:50:20 -05: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) and Bruce Weirdan (@weirdan).

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