File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 30
30
define ('OBJECT_K ' , 'OBJECT_K ' );
31
31
define ('ARRAY_A ' , 'ARRAY_A ' );
32
32
define ('ARRAY_N ' , 'ARRAY_N ' );
33
+
34
+ // Constants from WP_Filesystem.
35
+ define ('FS_CONNECT_TIMEOUT ' , 30 );
36
+ define ('FS_TIMEOUT ' , 30 );
37
+ define ('FS_CHMOD_DIR ' , 0755 );
38
+ define ('FS_CHMOD_FILE ' , 0644 );
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ includes:
3
3
- vendor/phpstan/phpstan-strict-rules/rules.neon
4
4
parameters :
5
5
level : max
6
+ # WpThemeMagicPropertiesClassReflectionExtension needs WP_Theme
7
+ scanFiles :
8
+ - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
6
9
paths :
7
10
- bootstrap.php
8
11
- src/
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static function php73Polyfill(Event $event): int
25
25
$ io ->write ('Removing duplicate is_countable() ... ' );
26
26
27
27
$ vendorDir = $ event ->getComposer ()->getConfig ()->get ('vendor-dir ' );
28
- $ stubsFile = $ vendorDir . self ::STUBSFILE ;
28
+ $ stubsFile = sprintf ( ' %s%s ' , $ vendorDir, self ::STUBSFILE ) ;
29
29
30
30
// phpcs:ignore WordPress.WP.AlternativeFunctions
31
31
$ stubs = file_get_contents ($ stubsFile );
You can’t perform that action at this time.
0 commit comments