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

Feature/phpstan #133

Open
wants to merge 25 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
294f802
Merge branch 'trunk' into feature/phpstan
darylldoyle Jun 8, 2022
74889df
Setup PHPStan
darylldoyle Jun 8, 2022
a4bf388
Update lint-staged to run PHPStan on updated files
darylldoyle Jun 8, 2022
7bee6ab
Remove issues that come from using array as a type rather than string…
darylldoyle Jun 8, 2022
4bb610d
Version updates
darylldoyle Jun 8, 2022
e3c4971
Function TenUpTheme\Utility\get_asset_info() should return array|stri…
claytoncollie Jul 20, 2022
fe0f1ad
Function TenUpTheme\Utility\get_colors() has no return type
claytoncollie Jul 20, 2022
bada1ec
Function TenUpTheme\Core\theme_setup() has no return type specified.
claytoncollie Jul 20, 2022
77956ae
Ignore remove_filter parameter count error
claytoncollie Jul 20, 2022
a98c1a4
Argument of an invalid type string supplied for foreach, only iterabl…
claytoncollie Jul 20, 2022
b329d3b
Function wp_body_open() has no return type specified.
claytoncollie Jul 20, 2022
18e1dbf
Function TenUpPlugin\Utility\get_asset_info() should return array|str…
claytoncollie Jul 20, 2022
df82e55
Function TenUpPlugin\Core\style_url() should return string but return…
claytoncollie Jul 20, 2022
ddc00ca
Moved config to root phpstan dir
darylldoyle Jul 22, 2022
04cd6be
Fix function not found errors
darylldoyle Jul 22, 2022
f31e7fc
Don’t error if default ignores don’t match
darylldoyle Jul 22, 2022
80053b9
We need to scan vendor files, but not analyse them
darylldoyle Aug 5, 2022
b14956e
Merge branch 'trunk' into feature/phpstan
darylldoyle Aug 5, 2022
ddfdf5d
Update package version
darylldoyle Aug 5, 2022
883c1a0
Add some basic docs
darylldoyle Aug 5, 2022
c0f28b3
Missing tab
darylldoyle Aug 5, 2022
f4c755b
Add additional notes about running on VIP setups
darylldoyle Aug 12, 2022
e2fce6c
Merge branch 'trunk' into feature/phpstan
darylldoyle Nov 8, 2022
eccc3c4
Update PHPStan deps to support WP 6
darylldoyle Nov 8, 2022
d0e24a4
Merge branch 'trunk' into feature/phpstan
darylldoyle Apr 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"10up-toolkit lint-js"
],
"*.php": [
"./vendor/bin/phpcs --extensions=php --warning-severity=8 -s"
"./vendor/bin/phpcs --extensions=php --warning-severity=8 -s",
"./vendor/bin/phpstan analyse --memory-limit=1G"
]
}
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"10up/phpcs-composer": "dev-master"
"10up/phpcs-composer": "dev-master",
"szepeviktor/phpstan-wordpress": "^1.1",
"php-stubs/wp-cli-stubs": "dev-master",
"phpstan/phpstan": "^1.7"
},
"scripts": {
"lint": "phpcs .",
"lint-fix": "phpcbf ."
"lint-fix": "phpcbf .",
"static": "phpstan --memory-limit=1G"
}
}
Loading