Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 4.x to master. #8222

Merged
merged 130 commits into from Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
054ed30
Fix side effect when loading config.
AndrolGenhald Jan 28, 2022
c3ea979
Fix syntax check failures
weirdan May 29, 2022
e47171d
Merge pull request #8028 from weirdan/fix-syntax-check-failures
weirdan May 29, 2022
30f07bf
Merge pull request #8027 from weirdan/backport-7506
weirdan May 29, 2022
8455d71
Run Shepherd with 8.0
weirdan May 29, 2022
3aadec6
Merge pull request #8029 from weirdan/fix-shepherd-job
orklah May 30, 2022
6352d9a
Precise stat return type
VincentLanglet May 29, 2022
087d7ce
Update historical
VincentLanglet May 29, 2022
6c52683
Merge pull request #8032 from VincentLanglet/stat
orklah May 30, 2022
9431316
Updated the delta to accommodate the param name changes when going fr…
KevinVanSonsbeek Jun 1, 2022
1042ece
Update the CallMap to have the correct param names
KevinVanSonsbeek Jun 1, 2022
e402a3b
Remove changes from delta, and retroactively fix param name in the hi…
KevinVanSonsbeek Jun 2, 2022
e72e448
Merge pull request #8042 from KevinVanSonsbeek/bugfix/splfileobject-f…
orklah Jun 2, 2022
2f090e5
Fix `TypeCombiner::combine` to not modify TIntRange arguments.
AndrolGenhald Jun 2, 2022
b5a0c59
Merge pull request #8049 from AndrolGenhald/fix-int-range-combination
orklah Jun 2, 2022
c271b12
Fix possibly empty array shape appearing non-empty (fixes #8048).
AndrolGenhald Jun 2, 2022
8b20708
stores origin location by ID to speed up psalm by up to 75% in certai…
kkmuffme Jun 4, 2022
cb78f54
Performance: cut the selected_text from snippet
kkmuffme Jun 4, 2022
4a54369
Merge pull request #8055 from kkmuffme/performance-get-selected-text-…
orklah Jun 4, 2022
f47b418
Merge pull request #8054 from kkmuffme/runtime-cache-origin-location
orklah Jun 4, 2022
74671e3
fix false positives for partially incalid phpdoc
kkmuffme Jun 5, 2022
99372a2
Clarify in docs that zero is not considered a positive-int
bdsl Jun 6, 2022
a7c9266
Use int<1,max> to define positivity
bdsl Jun 6, 2022
c064edc
use backticks in docs
bdsl Jun 6, 2022
d55988a
Merge pull request #8060 from bdsl/patch-8
orklah Jun 6, 2022
34322b7
Fix suppression comment.
AndrolGenhald Jun 6, 2022
4e59398
Coerce null to empty string in array keys
weirdan Jun 6, 2022
53c3c9b
Merge pull request #8064 from weirdan/null-is-cast-to-string-in-array…
orklah Jun 7, 2022
af5c191
Fix generic object comparison to use template constraint as default (…
AndrolGenhald Jun 8, 2022
271dce8
Fix test format after cherry-pick from master.
AndrolGenhald Jun 8, 2022
b113d77
Merge pull request #8069 from AndrolGenhald/bugfix/8068
orklah Jun 8, 2022
02d5bee
Merge pull request #8051 from AndrolGenhald/bugfix/8048
orklah Jun 8, 2022
44b2ccb
fix #8099: ob_implicit_flush argument type changed to bool
SamMousa Jun 13, 2022
ba0f75e
Merge pull request #8100 from SamMousa/fix-8099
orklah Jun 13, 2022
c7e39e7
tests: add test that validates the callmap in the current runtime
SamMousa Jun 13, 2022
507e792
added more type validity checks to reduce possible false positives
SamMousa Jun 13, 2022
1b5a01d
wip: lots of fixes to the callmap
SamMousa Jun 14, 2022
037c9ed
ci: run tests on php 8.1
SamMousa Jun 14, 2022
2e2812e
fix: imap callmap
SamMousa Jun 14, 2022
e78c0a5
chore: remove undefined skip function
SamMousa Jun 14, 2022
c1c3b20
fix: more callmap fixes
SamMousa Jun 14, 2022
d8edad8
fix: fix bad parameter names in callmap
SamMousa Jun 14, 2022
4bafb96
allow decimal_separator and thousands_separator parameters to be null…
drealecs Jun 15, 2022
923f600
fix: callmap delta for fgetss
SamMousa Jun 15, 2022
7bc5721
fix: php8.1 syntax in tests
SamMousa Jun 15, 2022
11b44b0
fix: add imagefilter alternative signatures in delta 8.1
SamMousa Jun 15, 2022
c638006
fix: add memcache family of function to ignore list
SamMousa Jun 15, 2022
ded566e
fix: callmap improvements and updated ignore list
SamMousa Jun 15, 2022
e826110
fix: ignore all faulty callmap entries and revert callmap changes
SamMousa Jun 15, 2022
a86dbf3
update test cases
kkmuffme Jun 11, 2022
0484ee1
chore: remove unused property
SamMousa Jun 15, 2022
c3a97e0
fix: add typehints
SamMousa Jun 15, 2022
c60e0a8
Merge pull request #8056 from kkmuffme/phpdoc-false-positives-for-par…
orklah Jun 15, 2022
0e7ea85
fix: ignore functions that fail on windows
SamMousa Jun 15, 2022
b46f556
chore: fix cs
SamMousa Jun 15, 2022
df75070
fix: ignore last remaining failing function
SamMousa Jun 15, 2022
cc58fd9
fix: add more typehints
SamMousa Jun 15, 2022
f6be3ef
fix: added more type annotations
SamMousa Jun 15, 2022
db34475
Merge branch '4.x' into automated-callmap-validation
SamMousa Jun 15, 2022
9a64143
Merge pull request #8104 from SamMousa/automated-callmap-validation
orklah Jun 15, 2022
ad46fc0
Merge pull request #8114 from drealecs/fix_number_format_callmap
orklah Jun 15, 2022
d0cbf97
Add ReflectionClass::isEnum()
BenMorel Jun 15, 2022
00c0c0e
Merge pull request #8117 from BenMorel/reflectionclass_isenum
orklah Jun 18, 2022
9ce57e6
Add missing ldap_unbind mapping for php 8.1
othercorey Jun 19, 2022
07b335d
Update ldap parameter to ldap_unbind in callmap
othercorey Jun 20, 2022
be4d0ff
Merge pull request #8126 from othercorey/patch-1
orklah Jun 20, 2022
37549ee
add test for ignore list cleanup
SamMousa Jun 22, 2022
d2467cf
sort ignore list add more functions to it
SamMousa Jun 22, 2022
d13a428
update ignores, cleanup test file
SamMousa Jun 22, 2022
f8e548e
fix code style remove debug code
SamMousa Jun 22, 2022
08aea9c
remove debug code
SamMousa Jun 22, 2022
ac09190
php version specific ignores
SamMousa Jun 22, 2022
c393a20
fix static analysis comments
SamMousa Jun 22, 2022
de8187d
Update tests/Internal/Codebase/InternalCallMapHandlerTest.php
SamMousa Jun 22, 2022
1f87a50
Merge pull request #8144 from SamMousa/feature-check-unused-callmap-i…
orklah Jun 22, 2022
b053253
Fix signatures of ldap_* functions
othercorey Jun 23, 2022
b9cae01
Remove ldap functions dropped in php 8.0
othercorey Jun 23, 2022
6858fb6
Merge pull request #8147 from othercorey/fix-ldap
orklah Jun 23, 2022
417bf87
Fix array_* function signatures
othercorey Jun 23, 2022
e1e8585
Fix filter_var and filter_var_array signatures
othercorey Jun 24, 2022
3297e35
Fix datefmt_* function signatures
othercorey Jun 24, 2022
13100bb
Merge pull request #8153 from othercorey/fix-datefmt
orklah Jun 24, 2022
cd54574
Merge pull request #8152 from othercorey/fix-filter-var
orklah Jun 24, 2022
9b4c8cb
Merge pull request #8151 from othercorey/fix-array-sigs
orklah Jun 24, 2022
933714f
Add ReflectionProperty properties
BenMorel Jun 23, 2022
450409f
Infer literal string from encapsed (interpolated) string.
AndrolGenhald Jun 24, 2022
d626d24
Merge pull request #8148 from BenMorel/reflectionproperty
orklah Jun 24, 2022
2559222
More interpolation and concatenation improvements.
AndrolGenhald Jun 25, 2022
a804e45
PHP 7.1 compatibility.
AndrolGenhald Jun 25, 2022
3aea098
Fix non-empty encapsed string check.
AndrolGenhald Jun 25, 2022
5ff54bc
CS fix.
AndrolGenhald Jun 25, 2022
b671117
Improve @psalm-internal and prevent usage of IssueBuffer::add().
AndrolGenhald Jun 25, 2022
a4ab664
Merge pull request #8165 from AndrolGenhald/stop-using-issuebuffer-add-😡
orklah Jun 25, 2022
b3038f0
Merge pull request #8164 from AndrolGenhald/encapsed-literal-strings
orklah Jun 26, 2022
e751a27
Fix crash when redefining method with fewer params (fixes #8141).
AndrolGenhald Jun 26, 2022
06dd975
Merge pull request #8174 from AndrolGenhald/fix-attribute-crash
orklah Jun 26, 2022
31ad16d
Stop using deprecated string interpolation syntax in StatementsProvid…
TimWolla Jun 27, 2022
d6624c5
Merge pull request #8188 from TimWolla/patch-1
weirdan Jun 27, 2022
bd50c4e
chore: Set permissions for GitHub actions
naveensrinivasan Jun 28, 2022
4db928e
split loop for better performance
kkmuffme Jun 28, 2022
4048bb9
only sort when necessary and faster hash
kkmuffme Jun 28, 2022
57239a7
assign keys to variable for better performance
kkmuffme Jun 28, 2022
9082eab
improve cache hash performance
kkmuffme Jun 28, 2022
9058608
check if file in cache already before adding
kkmuffme Jun 28, 2022
4bc803d
Merge pull request #8193 from kkmuffme/improve-psalm-performance
orklah Jun 28, 2022
df6fdb9
Fix return type of ReflectionNamedType::getName()
BenMorel Jun 29, 2022
51c6e99
Merge pull request #8201 from BenMorel/issue8167
orklah Jun 29, 2022
1d32a47
Merge pull request #8189 from turrisxyz/Pinned-Dependencies-GitHub
orklah Jun 29, 2022
4c97472
chore: Included githubactions in the dependabot config
naveensrinivasan Jun 30, 2022
ebb2ca2
Merge pull request #8203 from turrisxyz/Dependabot-GitHub-Actions
orklah Jun 30, 2022
f4e518c
build(deps): bump mheap/github-action-required-labels from 1 to 2
dependabot[bot] Jun 30, 2022
206a903
build(deps): bump fkirc/skip-duplicate-actions from 3.4.0 to 4.0.0
dependabot[bot] Jun 30, 2022
236c24f
build(deps): bump actions/cache from 2 to 3
dependabot[bot] Jun 30, 2022
005d3e2
build(deps): bump actions/checkout from 2 to 3
dependabot[bot] Jun 30, 2022
a129dec
Merge pull request #8207 from vimeo/dependabot/github_actions/mheap/g…
orklah Jun 30, 2022
cf8f0a0
Merge pull request #8208 from vimeo/dependabot/github_actions/fkirc/s…
orklah Jun 30, 2022
fdb664f
Merge pull request #8209 from vimeo/dependabot/github_actions/actions…
orklah Jun 30, 2022
b156892
Merge pull request #8210 from vimeo/dependabot/github_actions/actions…
orklah Jun 30, 2022
d0dcd54
Fix count() CallMap signature
othercorey Jul 5, 2022
c71dcd5
Fix fputcsv() CallMap signature
othercorey Jul 5, 2022
2469b62
Fix extract() CallMap signature
othercorey Jul 5, 2022
e0ebfe1
Fix class functions CallMap signatures
othercorey Jul 5, 2022
b1e3094
Allow testing expected CallMap return types and ignore functions that…
othercorey Jun 25, 2022
6c49dad
fix: ltrim may return class-string #8218
Tofandel Jul 6, 2022
38443ef
Merge pull request #8166 from othercorey/func-return-signatures
orklah Jul 6, 2022
e28cd12
Merge pull request #8217 from othercorey/fix-callmap-funcs
orklah Jul 6, 2022
31bee0c
Fix codestyle erors in InternalCallMapHandlerTest
othercorey Jul 6, 2022
65ffac2
Merge pull request #8220 from othercorey/fix-codestyle
orklah Jul 6, 2022
6e27c23
Merge pull request #8219 from Tofandel/patch-2
orklah Jul 6, 2022
285740a
Merge branch '4.x'
AndrolGenhald Jul 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
6 changes: 3 additions & 3 deletions .github/workflows/build-phar.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.4.0
uses: fkirc/skip-duplicate-actions@v4.0.0
with:
concurrent_skipping: always
cancel_others: true
Expand All @@ -35,7 +35,7 @@ jobs:
tools: composer:v2
coverage: none

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directories
id: composer-cache
Expand All @@ -44,7 +44,7 @@ jobs:
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"

- name: Cache composer cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.composer-cache.outputs.files_cache }}
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
@@ -1,6 +1,9 @@
name: Run unit tests

on: [push, pull_request]
permissions:
contents: read

jobs:
lint:
name: Check PHP syntax
Expand All @@ -13,7 +16,7 @@ jobs:
tools: composer:v2
coverage: none

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directories
id: composer-cache
Expand All @@ -22,7 +25,7 @@ jobs:
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"

- name: Cache composer cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.composer-cache.outputs.files_cache }}
Expand All @@ -32,13 +35,15 @@ jobs:
${{ runner.os }}-composer-

- name: Run composer install
run: composer install -o --ignore-platform-reqs
run: composer install -o
env:
COMPOSER_ROOT_VERSION: dev-master

- run: |
git ls-files | grep \\\.php$ | grep -v ^dictionaries/scripts/* | ./vendor/bin/parallel-lint --stdin
chunk-matrix:
permissions:
contents: none
name: Generate Chunk Matrix

runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,13 +83,13 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
ini-values: zend.assertions=1, assert.exception=1
tools: composer:v2
coverage: none
extensions: none, curl, dom, filter, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directories
id: composer-cache
Expand All @@ -93,7 +98,7 @@ jobs:
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"

- name: Cache composer cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.composer-cache.outputs.files_cache }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels.yml
Expand Up @@ -6,7 +6,7 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v1
- uses: mheap/github-action-required-labels@v2
with:
mode: minimum
count: 1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/shepherd.yml
Expand Up @@ -2,15 +2,18 @@ name: Run Shepherd

on: [push, pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.0'

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/windows-ci.yml
Expand Up @@ -2,8 +2,13 @@ name: Run unit tests on Windows

on: [push, pull_request]

permissions:
contents: read

jobs:
chunk-matrix:
permissions:
contents: none
name: Generate Chunk Matrix

runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
coverage: none
extensions: none, curl, dom, filter, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get Composer Cache Directories
id: composer-cache
Expand All @@ -63,7 +68,7 @@ jobs:
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"

- name: Cache composer cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ steps.composer-cache.outputs.files_cache }}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -109,6 +109,7 @@
"lint": "parallel-lint ./src ./tests",
"phpunit": "paratest --runner=WrapperRunner",
"phpunit-std": "phpunit",
"verify-callmap": "phpunit tests/Internal/Codebase/InternalCallMapHandlerTest.php",
"psalm": "@php ./psalm --find-dead-code",
"tests": [
"@lint",
Expand Down