-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/ext-amqp-phpstub
- Loading branch information
Showing
1,307 changed files
with
198,494 additions
and
47,257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run Psalm (mac OS) | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-15 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.4' | ||
ini-values: zend.assertions=1 | ||
tools: composer:v2 | ||
coverage: none | ||
env: | ||
fail-fast: true | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
env: | ||
COMPOSER_ROOT_VERSION: dev-master | ||
|
||
- name: Run Psalm | ||
run: ./psalm --output-format=github --force-jit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Psalm\Config\IssueHandler; | ||
use Psalm\Issue\CodeIssue; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
use DG\BypassFinals; | ||
use Psalm\Internal\Analyzer\ProjectAnalyzer; | ||
use Psalm\Internal\Provider\FileProvider; | ||
use Psalm\Internal\Provider\Providers; | ||
use Psalm\Tests\TestConfig; | ||
use Psalm\Type; | ||
|
||
BypassFinals::enable(); | ||
|
||
new ProjectAnalyzer(new TestConfig, new Providers(new FileProvider)); | ||
|
||
$codebase = ProjectAnalyzer::getInstance()->getCodebase(); | ||
|
||
chdir(__DIR__.'/../'); | ||
|
||
foreach (glob("dictionaries/CallMap*.php") as $file) { | ||
$callMap = require $file; | ||
|
||
array_walk_recursive($callMap, function (string &$type): void { | ||
$type = Type::parseString($type === '' ? 'mixed' : $type)->getId(true); | ||
}); | ||
|
||
file_put_contents($file, '<?php // phpcs:ignoreFile | ||
return '.var_export($callMap, true).';'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ collections) | |
git clone --depth=1 [email protected]:psalm/endtoend-test-collections.git | ||
cd endtoend-test-collections | ||
composer install | ||
rm vendor/amphp/amp/lib/functions.php; touch vendor/amphp/amp/lib/functions.php; | ||
rm vendor/amphp/amp/lib/Internal/functions.php; touch vendor/amphp/amp/lib/Internal/functions.php | ||
rm vendor/amphp/byte-stream/lib/functions.php; touch vendor/amphp/byte-stream/lib/functions.php | ||
"$PSALM" --monochrome --show-info=false | ||
;; | ||
|
||
|
@@ -36,11 +39,13 @@ psl) | |
|
||
git clone [email protected]:psalm/endtoend-test-psl.git | ||
cd endtoend-test-psl | ||
git checkout 2.3.x | ||
git checkout 2.3.x_master | ||
composer install | ||
# Avoid conflicts with old psalm when running phar tests | ||
rm -rf vendor/vimeo/psalm | ||
sed 's/ErrorOutputBehavior::Packed, ErrorOutputBehavior::Discard/ErrorOutputBehavior::Discard/g' -i src/Psl/Shell/execute.php | ||
"$PSALM" --monochrome -c config/psalm.xml | ||
"$PSALM" --monochrome -c config/psalm.xml tests/static-analysis | ||
"$PSALM_PHAR" --monochrome -c config/psalm.xml | ||
"$PSALM_PHAR" --monochrome -c config/psalm.xml tests/static-analysis | ||
;; | ||
|
||
laravel) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.