Page MenuHomePhabricator

ERROR: Error: Undefined constant 'ast\AST_LIST' in /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php:972 on css-sanitizer
Closed, DuplicatePublic

Description

1
2css-sanitizer
3source • patches
4
5$ date
6Tue Jun 2 07:52:04 UTC 2020
7
8$ git clone https://gerrit-replica.wikimedia.org/r/css-sanitizer.git repo --depth=1
9Cloning into 'repo'...
10
11$ git config user.name libraryupgrader
12
13$ git config user.email tools.libraryupgrader@tools.wmflabs.org
14
15$ git submodule update --init
16
17$ git show-ref HEAD
188b300e1dda2ce15876ff60c447708955f7326706 refs/remotes/origin/HEAD
19
20Running tests to verify repository integrity
21$ composer install
22Loading composer repositories with package information
23Updating dependencies (including require-dev)
24Package operations: 57 installs, 0 updates, 0 removals
25 - Installing wikimedia/at-ease (v2.0.0): Loading from cache
26 - Installing wikimedia/utfnormal (v2.0.0): Loading from cache
27 - Installing squizlabs/php_codesniffer (3.5.5): Loading from cache
28 - Installing composer/spdx-licenses (1.5.3): Loading from cache
29 - Installing composer/semver (1.5.1): Loading from cache
30 - Installing mediawiki/mediawiki-codesniffer (v31.0.0): Loading from cache
31 - Installing symfony/polyfill-mbstring (v1.17.0): Loading from cache
32 - Installing symfony/polyfill-php80 (v1.17.0): Loading from cache
33 - Installing symfony/polyfill-intl-normalizer (v1.17.0): Loading from cache
34 - Installing symfony/polyfill-intl-grapheme (v1.17.0): Loading from cache
35 - Installing symfony/polyfill-ctype (v1.17.0): Loading from cache
36 - Installing symfony/string (v5.1.0): Loading from cache
37 - Installing psr/container (1.0.0): Loading from cache
38 - Installing symfony/service-contracts (v2.1.2): Loading from cache
39 - Installing symfony/polyfill-php73 (v1.17.0): Loading from cache
40 - Installing symfony/console (v5.1.0): Loading from cache
41 - Installing psr/log (1.1.3): Loading from cache
42 - Installing sabre/event (5.1.0): Loading from cache
43 - Installing netresearch/jsonmapper (v1.6.0): Loading from cache
44 - Installing microsoft/tolerant-php-parser (v0.0.18): Loading from cache
45 - Installing phpdocumentor/reflection-common (2.1.0): Loading from cache
46 - Installing webmozart/assert (1.8.0): Loading from cache
47 - Installing phpdocumentor/type-resolver (1.1.0): Loading from cache
48 - Installing phpdocumentor/reflection-docblock (5.1.0): Loading from cache
49 - Installing felixfbecker/advanced-json-rpc (v3.1.1): Loading from cache
50 - Installing composer/xdebug-handler (1.4.1): Loading from cache
51 - Installing phan/phan (2.4.7): Loading from cache
52 - Installing mediawiki/mediawiki-phan-config (0.9.1): Loading from cache
53 - Installing mediawiki/minus-x (1.0.0): Loading from cache
54 - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
55 - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
56 - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
57 - Installing wikimedia/testing-access-wrapper (1.0.0): Loading from cache
58 - Installing sebastian/version (2.0.1): Loading from cache
59 - Installing sebastian/type (1.1.3): Loading from cache
60 - Installing sebastian/resource-operations (2.0.1): Loading from cache
61 - Installing sebastian/recursion-context (3.0.0): Loading from cache
62 - Installing sebastian/object-reflector (1.1.1): Loading from cache
63 - Installing sebastian/object-enumerator (3.0.3): Loading from cache
64 - Installing sebastian/global-state (3.0.0): Loading from cache
65 - Installing sebastian/exporter (3.1.2): Loading from cache
66 - Installing sebastian/environment (4.2.3): Loading from cache
67 - Installing sebastian/diff (3.0.2): Loading from cache
68 - Installing sebastian/comparator (3.0.2): Loading from cache
69 - Installing phpunit/php-timer (2.1.2): Loading from cache
70 - Installing phpunit/php-text-template (1.2.1): Loading from cache
71 - Installing phpunit/php-file-iterator (2.0.2): Loading from cache
72 - Installing theseer/tokenizer (1.1.3): Loading from cache
73 - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
74 - Installing phpunit/php-token-stream (3.1.1): Loading from cache
75 - Installing phpunit/php-code-coverage (7.0.10): Loading from cache
76 - Installing doctrine/instantiator (1.3.1): Loading from cache
77 - Installing phpspec/prophecy (v1.10.3): Loading from cache
78 - Installing phar-io/version (2.0.1): Loading from cache
79 - Installing phar-io/manifest (1.0.3): Loading from cache
80 - Installing myclabs/deep-copy (1.9.5): Loading from cache
81 - Installing phpunit/phpunit (8.5.5): Loading from cache
82symfony/service-contracts suggests installing symfony/service-implementation
83symfony/console suggests installing symfony/event-dispatcher
84symfony/console suggests installing symfony/lock
85symfony/console suggests installing symfony/process
86phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed.)
87phan/phan suggests installing ext-igbinary (Improves performance of polyfill when ext-ast is unavailable)
88sebastian/global-state suggests installing ext-uopz (*)
89phpunit/php-code-coverage suggests installing ext-xdebug (^2.7.2)
90phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
91phpunit/phpunit suggests installing ext-soap (*)
92phpunit/phpunit suggests installing ext-xdebug (*)
93Writing lock file
94Generating autoload files
9512 packages you are using are looking for funding.
96Use the `composer fund` command to find out more!
97
98$ composer test
99> composer lint
100> parallel-lint . --exclude vendor
101PHP 7.3.14 | 10 parallel jobs
102............................................................ 60/124 (48 %)
103............................................................ 120/124 (96 %)
104.... 124/124 (100 %)
105
106
107Checked 124 files in 0.3 seconds
108No syntax error found
109> composer phpcs
110> phpcs -p -s
111............................................................ 60 / 124 (48%)
112............................................................ 120 / 124 (97%)
113.... 124 / 124 (100%)
114
115
116Time: 2.68 secs; Memory: 30MB
117
118> composer phpunit
119> phpunit $PHPUNIT_ARGS
120PHPUnit 8.5.5 by Sebastian Bergmann and contributors.
121
122............................................................. 61 / 1915 ( 3%)
123............................................................. 122 / 1915 ( 6%)
124............................................................. 183 / 1915 ( 9%)
125............................................................. 244 / 1915 ( 12%)
126............................................................. 305 / 1915 ( 15%)
127............................................................. 366 / 1915 ( 19%)
128............................................................. 427 / 1915 ( 22%)
129............................................................. 488 / 1915 ( 25%)
130............................................................. 549 / 1915 ( 28%)
131............................................................. 610 / 1915 ( 31%)
132............................................................. 671 / 1915 ( 35%)
133............................................................. 732 / 1915 ( 38%)
134............................................................. 793 / 1915 ( 41%)
135............................................................. 854 / 1915 ( 44%)
136............................................................. 915 / 1915 ( 47%)
137............................................................. 976 / 1915 ( 50%)
138............................................................. 1037 / 1915 ( 54%)
139............................................................. 1098 / 1915 ( 57%)
140............................................................. 1159 / 1915 ( 60%)
141............................................................. 1220 / 1915 ( 63%)
142............................................................. 1281 / 1915 ( 66%)
143............................................................. 1342 / 1915 ( 70%)
144............................................................. 1403 / 1915 ( 73%)
145............................................................. 1464 / 1915 ( 76%)
146............................................................. 1525 / 1915 ( 79%)
147............................................................. 1586 / 1915 ( 82%)
148............................................................. 1647 / 1915 ( 86%)
149............................................................. 1708 / 1915 ( 89%)
150............................................................. 1769 / 1915 ( 92%)
151............................................................. 1830 / 1915 ( 95%)
152............................................................. 1891 / 1915 ( 98%)
153........................ 1915 / 1915 (100%)
154
155Time: 581 ms, Memory: 22.00 MB
156
157OK (1915 tests, 4979 assertions)
158> minus-x check .
159MinusX
160======
161Processing /src/repo...
162.............................................................
163.............................................................
164...............
165All good!
166> composer phan
167> phan -d . -p --allow-polyfill-parser
168 parse ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 11MB/19MB
169 parse ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 22MB/22MB
170 parse █▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3% 29MB/30MB
171 parse ██▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% 40MB/41MB
172 parse ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6% 48MB/48MB
173 parse ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8% 59MB/60MB
174 parse ████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9% 67MB/67MB
175 parse █████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10% 83MB/87MB
176 parse ██████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 12% 91MB/91MB
177 parse ██████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 20% 94MB/94MB
178 parse ████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 24% 108MB/110MB
179 parse ██████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 27% 115MB/115MB
180 parse █████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 34% 120MB/120MB
181 parse ███████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 37% 127MB/127MB
182 parse █████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 40% 133MB/133MB
183 parse ███████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 45% 138MB/138MB
184 parse ██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░ 50% 144MB/144MB
185 parse ███████████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░ 52% 152MB/152MB
186 parse ████████████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░ 55% 163MB/163MB
187 parse ████████████████████████████████░░░░░░░░░░░░░░░░░░░░ 61% 168MB/168MB
188 parse ██████████████████████████████████░░░░░░░░░░░░░░░░░░ 65% 174MB/174MB
189 parse ██████████████████████████████████▒░░░░░░░░░░░░░░░░░ 66% 184MB/184MB
190 parse ████████████████████████████████████░░░░░░░░░░░░░░░░ 69% 193MB/194MB
191 parse ████████████████████████████████████▒░░░░░░░░░░░░░░░ 70% 204MB/205MB
192 parse █████████████████████████████████████▒░░░░░░░░░░░░░░ 71% 212MB/212MB
193 parse ███████████████████████████████████████░░░░░░░░░░░░░ 75% 219MB/219MB
194 parse █████████████████████████████████████████░░░░░░░░░░░ 78% 226MB/226MB
195 parse ██████████████████████████████████████████░░░░░░░░░░ 81% 234MB/234MB
196 parse ████████████████████████████████████████████░░░░░░░░ 84% 242MB/242MB
197 parse █████████████████████████████████████████████▒░░░░░░ 87% 249MB/249MB
198 parse ███████████████████████████████████████████████░░░░░ 90% 256MB/256MB
199 parse ███████████████████████████████████████████████▓░░░░ 92% 265MB/265MB
200 parse █████████████████████████████████████████████████░░░ 94% 272MB/272MB
201 parse █████████████████████████████████████████████████▒░░ 95% 273MB/285MB
202 parse ██████████████████████████████████████████████████▒░ 96% 279MB/285MB
203 parse ██████████████████████████████████████████████████▓░ 97% 286MB/287MB
204 parse ███████████████████████████████████████████████████▓ 99% 293MB/294MB
205 parse ████████████████████████████████████████████████████ 100% 294MB/294MB
206 function ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 308MB/308MB
207 function ████████████████████████████████████████████████████ 100% 309MB/309MB
208 method █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2% 327MB/327MB
209 method ▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1% 350MB/350MB
210 method █▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3% 368MB/368MB
211 method █▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3% 388MB/388MB
212 method ██▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% 399MB/399MB
213 method ███▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 409MB/409MB
214 method ███▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 427MB/427MB
215 method ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 444MB/444MB
216 method ██████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 13% 449MB/449MB
217 method ██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 19% 450MB/450MB
218 method █████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 25% 451MB/451MB
219 method ████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 31% 452MB/452MB
220 method ███████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 37% 452MB/452MB
221 method ██████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 43% 453MB/453MB
222 method █████████████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░ 49% 454MB/454MB
223 method ████████████████████████████▓░░░░░░░░░░░░░░░░░░░░░░░ 55% 455MB/455MB
224 method ███████████████████████████████▓░░░░░░░░░░░░░░░░░░░░ 61% 455MB/455MB
225 method ███████████████████████████████████░░░░░░░░░░░░░░░░░ 67% 456MB/456MB
226 method ██████████████████████████████████████▒░░░░░░░░░░░░░ 73% 457MB/457MB
227 method ██████████████████████████████████████████░░░░░░░░░░ 80% 458MB/458MB
228 method █████████████████████████████████████████████▒░░░░░░ 87% 458MB/458MB
229 method █████████████████████████████████████████████████░░░ 94% 459MB/459MB
230 method ████████████████████████████████████████████████████ 100% 460MB/460MB
231 analyze ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 464MB/471MB
232 analyze █████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11% 467MB/471MB
233 analyze ████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 17% 469MB/473MB
234 analyze ████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 30% 470MB/473MB
235 analyze ██████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 35% 470MB/474MB
236 analyze █████████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░ 48% 471MB/474MB
237 analyze ██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░ 50% 475MB/481MB
238 analyze ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░ 57% 478MB/481MB
239 analyze ██████████████████████████████████░░░░░░░░░░░░░░░░░░ 65% 478MB/481MB
240 analyze ███████████████████████████████████░░░░░░░░░░░░░░░░░ 67% 480MB/484MB
241 analyze ██████████████████████████████████████░░░░░░░░░░░░░░ 73% 482MB/485MB
242 analyze ███████████████████████████████████████████░░░░░░░░░ 82% 484MB/486MB
243 analyze ████████████████████████████████████████████████░░░░ 92% 485MB/486MB
244 analyze ████████████████████████████████████████████████████ 100% 486MB/486MB
245
246Upgrading c:mediawiki/mediawiki-phan-config from 0.9.1 -> 0.10.2
247$ composer update
248Loading composer repositories with package information
249Updating dependencies (including require-dev)
250Package operations: 1 install, 4 updates, 0 removals
251 - Updating netresearch/jsonmapper (v1.6.0 => v2.1.0): Loading from cache
252 - Updating microsoft/tolerant-php-parser (v0.0.18 => v0.0.20): Loading from cache
253 - Updating phan/phan (2.4.7 => 2.6.1): Loading from cache
254 - Installing mediawiki/phan-taint-check-plugin (3.0.2): Loading from cache
255 - Updating mediawiki/mediawiki-phan-config (0.9.1 => 0.10.2): Loading from cache
256Writing lock file
257Generating autoload files
25812 packages you are using are looking for funding.
259Use the `composer fund` command to find out more!
260
261$ composer install
262Loading composer repositories with package information
263Installing dependencies (including require-dev) from lock file
264Nothing to install or update
265Generating autoload files
26612 packages you are using are looking for funding.
267Use the `composer fund` command to find out more!
268
269$ composer test
270> composer lint
271> parallel-lint . --exclude vendor
272PHP 7.3.14 | 10 parallel jobs
273............................................................ 60/124 (48 %)
274............................................................ 120/124 (96 %)
275.... 124/124 (100 %)
276
277
278Checked 124 files in 0.4 seconds
279No syntax error found
280> composer phpcs
281> phpcs -p -s
282............................................................ 60 / 124 (48%)
283............................................................ 120 / 124 (97%)
284.... 124 / 124 (100%)
285
286
287Time: 2.64 secs; Memory: 30MB
288
289> composer phpunit
290> phpunit $PHPUNIT_ARGS
291PHPUnit 8.5.5 by Sebastian Bergmann and contributors.
292
293............................................................. 61 / 1915 ( 3%)
294............................................................. 122 / 1915 ( 6%)
295............................................................. 183 / 1915 ( 9%)
296............................................................. 244 / 1915 ( 12%)
297............................................................. 305 / 1915 ( 15%)
298............................................................. 366 / 1915 ( 19%)
299............................................................. 427 / 1915 ( 22%)
300............................................................. 488 / 1915 ( 25%)
301............................................................. 549 / 1915 ( 28%)
302............................................................. 610 / 1915 ( 31%)
303............................................................. 671 / 1915 ( 35%)
304............................................................. 732 / 1915 ( 38%)
305............................................................. 793 / 1915 ( 41%)
306............................................................. 854 / 1915 ( 44%)
307............................................................. 915 / 1915 ( 47%)
308............................................................. 976 / 1915 ( 50%)
309............................................................. 1037 / 1915 ( 54%)
310............................................................. 1098 / 1915 ( 57%)
311............................................................. 1159 / 1915 ( 60%)
312............................................................. 1220 / 1915 ( 63%)
313............................................................. 1281 / 1915 ( 66%)
314............................................................. 1342 / 1915 ( 70%)
315............................................................. 1403 / 1915 ( 73%)
316............................................................. 1464 / 1915 ( 76%)
317............................................................. 1525 / 1915 ( 79%)
318............................................................. 1586 / 1915 ( 82%)
319............................................................. 1647 / 1915 ( 86%)
320............................................................. 1708 / 1915 ( 89%)
321............................................................. 1769 / 1915 ( 92%)
322............................................................. 1830 / 1915 ( 95%)
323............................................................. 1891 / 1915 ( 98%)
324........................ 1915 / 1915 (100%)
325
326Time: 570 ms, Memory: 22.00 MB
327
328OK (1915 tests, 4979 assertions)
329> minus-x check .
330MinusX
331======
332Processing /src/repo...
333.............................................................
334.............................................................
335...............
336All good!
337> composer phan
338> phan -d . -p --allow-polyfill-parser
339 parse ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 11MB/19MB
340 parse ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 22MB/22MB
341 parse █▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3% 29MB/30MB
342 parse ██▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% 40MB/41MB
343 parse ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5% 49MB/49MB
344 parse ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8% 60MB/61MB
345 parse ████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9% 68MB/68MB
346 parse █████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10% 84MB/88MB
347 parse ██████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11% 91MB/91MB
348 parse ███████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 14% 99MB/99MB
349 parse ███████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 14% 110MB/110MB
350 parse ███████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 22% 113MB/113MB
351 parse ████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 24% 126MB/127MB
352 parse ██████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 28% 133MB/133MB
353 parse ██████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 35% 138MB/139MB
354 parse ███████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 38% 146MB/146MB
355 parse █████████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 41% 153MB/153MB
356 parse ████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 46% 160MB/160MB
357 parse ██████████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░ 51% 166MB/166MB
358 parse ███████████████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░ 53% 174MB/174MB
359 parse ████████████████████████████▓░░░░░░░░░░░░░░░░░░░░░░░ 55% 190MB/190MB
360 parse ████████████████████████████████░░░░░░░░░░░░░░░░░░░░ 62% 196MB/196MB
361 parse █████████████████████████████████▓░░░░░░░░░░░░░░░░░░ 65% 204MB/204MB
362 parse ██████████████████████████████████▓░░░░░░░░░░░░░░░░░ 66% 215MB/215MB
363 parse ████████████████████████████████████░░░░░░░░░░░░░░░░ 69% 226MB/227MB
364 parse ████████████████████████████████████▒░░░░░░░░░░░░░░░ 70% 239MB/240MB
365 parse █████████████████████████████████████▒░░░░░░░░░░░░░░ 72% 251MB/251MB
366 parse ███████████████████████████████████████░░░░░░░░░░░░░ 75% 259MB/259MB
367 parse █████████████████████████████████████████░░░░░░░░░░░ 79% 267MB/267MB
368 parse ██████████████████████████████████████████░░░░░░░░░░ 81% 282MB/282MB
369 parse ████████████████████████████████████████████░░░░░░░░ 84% 293MB/294MB
370 parse █████████████████████████████████████████████▒░░░░░░ 87% 302MB/302MB
371 parse ███████████████████████████████████████████████░░░░░ 90% 310MB/310MB
372 parse ███████████████████████████████████████████████▓░░░░ 92% 320MB/320MB
373 parse █████████████████████████████████████████████████░░░ 94% 328MB/328MB
374 parse █████████████████████████████████████████████████▒░░ 95% 329MB/341MB
375 parse ██████████████████████████████████████████████████▒░ 96% 336MB/341MB
376 parse ██████████████████████████████████████████████████▓░ 97% 343MB/345MB
377 parse ███████████████████████████████████████████████████▓ 99% 351MB/352MB
378 parse ████████████████████████████████████████████████████ 100% 352MB/352MB
379 function ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 366MB/366MB
380 function ████████████████████████████████████████████████████ 100% 367MB/367MB
381 method █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2% 384MB/384MB
382 method ▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1% 402MB/402MB
383 method ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% 416MB/416MB
384 method █▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3% 435MB/435MB
385 method ██▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5% 446MB/446MB
386 method ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 455MB/455MB
387 method ███▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 472MB/472MB
388 method ███▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% 492MB/492MB
389 method █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9% 498MB/498MB
390 method ████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 16% 498MB/498MB
391 method ███████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 21% 507MB/507MB
392 method ██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 27% 507MB/507MB
393 method █████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 32% 508MB/508MB
394 method ███████████████████▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 38% 509MB/509MB
395 method ██████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 43% 509MB/509MB
396 method █████████████████████████▒░░░░░░░░░░░░░░░░░░░░░░░░░░ 48% 510MB/510MB
397 method ████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░ 54% 510MB/510MB
398 method ███████████████████████████████░░░░░░░░░░░░░░░░░░░░░ 59% 511MB/511MB
399 method ██████████████████████████████████░░░░░░░░░░░░░░░░░░ 65% 511MB/511MB
400 method █████████████████████████████████████░░░░░░░░░░░░░░░ 71% 512MB/512MB
401 method ████████████████████████████████████████░░░░░░░░░░░░ 77% 512MB/512MB
402 method ███████████████████████████████████████████▒░░░░░░░░ 83% 513MB/513MB
403 method ██████████████████████████████████████████████▓░░░░░ 90% 513MB/513MB
404 method ██████████████████████████████████████████████████░░ 96% 514MB/514MB
405 method ████████████████████████████████████████████████████ 100% 514MB/514MB
406 analyze ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% 515MB/523MB
407ERROR: Error: Undefined constant 'ast\AST_LIST' in /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php:972
408Stack trace:
409#0 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php(1481): TaintednessVisitor->getPhanObjsForNode(Object(ast\Node))
410#1 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php(1442): TaintednessVisitor->getOriginalTaintLineRaw(Object(ast\Node), -1)
411#2 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessBaseVisitor.php(2039): TaintednessVisitor->getOriginalTaintLine(Object(ast\Node))
412#3 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessVisitor.php(819): TaintednessVisitor->handleMethodCall(Object(Phan\Language\Element\Method), Object(Phan\Language\FQSEN\FullyQualifiedMethodName), Array, Array)
413#4 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/MWVisitor.php(52): TaintednessVisitor->visitMethodCall(Object(ast\Node))
414#5 /src/repo/vendor/mediawiki/phan-taint-check-plugin/src/TaintednessVisitor.php(776): MWVisitor->visitMethodCall(Object(ast\Node))
415#6 /src/repo/vendor/phan/phan/src/Phan/Plugin/ConfigPluginSet.php(1165): TaintednessVisitor->visitNew(Object(ast\Node))
416#7 /src/repo/vendor/phan/phan/src/Phan/Plugin/ConfigPluginSet.php(295): MWVisitor::Phan\Plugin\{closure}(Object(Phan\CodeBase), Object(Phan\Language\Context), Object(ast\Node), Array)
417#8 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(2497): Phan\Plugin\ConfigPluginSet->postAnalyzeNode(Object(Phan\CodeBase), Object(Phan\Language\Context), Object(ast\Node), Array)
418#9 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(544): Phan\BlockAnalysisVisitor->postOrderAnalyze(Object(Phan\Language\Context), Object(ast\Node))
419#10 /src/repo/vendor/phan/phan/src/Phan/AST/Visitor/KindVisitorImplementation.php(264): Phan\BlockAnalysisVisitor->visit(Object(ast\Node))
420#11 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\AST\Visitor\KindVisitorImplementation->visitNew(Object(ast\Node))
421#12 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(541): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
422#13 /src/repo/vendor/phan/phan/src/Phan/AST/Visitor/KindVisitorImplementation.php(309): Phan\BlockAnalysisVisitor->visit(Object(ast\Node))
423#14 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\AST\Visitor\KindVisitorImplementation->visitReturn(Object(ast\Node))
424#15 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(233): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
425#16 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\BlockAnalysisVisitor->visitStmtList(Object(ast\Node))
426#17 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(2378): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
427#18 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\BlockAnalysisVisitor->visitMethod(Object(ast\Node))
428#19 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(233): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
429#20 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\BlockAnalysisVisitor->visitStmtList(Object(ast\Node))
430#21 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(1337): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
431#22 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(2346): Phan\BlockAnalysisVisitor->visitClosedContext(Object(ast\Node))
432#23 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(572): Phan\BlockAnalysisVisitor->visitClass(Object(ast\Node))
433#24 /src/repo/vendor/phan/phan/src/Phan/BlockAnalysisVisitor.php(233): Phan\BlockAnalysisVisitor->analyzeAndGetUpdatedContext(Object(Phan\Language\Context), Object(ast\Node), Object(ast\Node))
434#25 /src/repo/vendor/phan/phan/src/Phan/AST/Visitor/KindVisitorImplementation.php(35): Phan\BlockAnalysisVisitor->visitStmtList(Object(ast\Node))
435#26 /src/repo/vendor/phan/phan/src/Phan/Analysis.php(560): Phan\AST\Visitor\KindVisitorImplementation->__invoke(Object(ast\Node))
436#27 /src/repo/vendor/phan/phan/src/Phan/Phan.php(526): Phan\Analysis::analyzeFile(Object(Phan\CodeBase), 'src/Grammar/Mat...', NULL, NULL)
437#28 /src/repo/vendor/phan/phan/src/Phan/Phan.php(583): Phan\Phan::Phan\{closure}(0, 'src/Grammar/Mat...', 123)
438#29 /src/repo/vendor/phan/phan/src/Phan/Phan.php(376): Phan\Phan::finishAnalyzingRemainingStatements(Object(Phan\CodeBase), NULL, Array, Array)
439#30 /src/repo/vendor/phan/phan/src/phan.php(36): Phan\Phan::analyzeFileList(Object(Phan\CodeBase), Object(Closure))
440#31 /src/repo/vendor/phan/phan/phan(9): require_once('/src/repo/vendo...')
441#32 {main}
442(Phan 2.6.1 crashed due to an uncaught Throwable when parsing/analyzing 'src/Grammar/Matcher.php')
443Script phan -d . -p --allow-polyfill-parser handling the phan event returned with error code 1
444Script composer phan handling the test event returned with error code 1
445
446Traceback (most recent call last):
447 File "/src/libup/ng.py", line 1028, in main
448 libup.run(args.repo, args.output)
449 File "/src/libup/ng.py", line 980, in run
450 self.composer_upgrade(self.output)
451 File "/src/libup/ng.py", line 549, in composer_upgrade
452 self.composer_test()
453 File "/src/libup/ng.py", line 225, in composer_test
454 self.check_call(['composer', 'test'])
455 File "/src/libup/shell.py", line 38, in check_call
456 res.check_returncode()
457 File "/usr/lib/python3.7/subprocess.py", line 428, in check_returncode
458 self.stderr)
459subprocess.CalledProcessError: Command '['composer', 'test']' returned non-zero exit status 1.
460
461composer dependencies
462Dependencies
463
464 ext-iconv: *
465 ext-mbstring: *
466 php: >=7.2.0
467 wikimedia/at-ease: 2.0.0
468 wikimedia/utfnormal: 2.0.0
469
470Development dependencies
471
472 mediawiki/mediawiki-codesniffer: 31.0.0
473 mediawiki/mediawiki-phan-config: 0.9.1 (0.10.2 available✔️)
474 mediawiki/minus-x: 1.0.0 (1.1.0 available✔️)
475 php-parallel-lint/php-console-highlighter: 0.5.0
476 php-parallel-lint/php-parallel-lint: 1.2.0
477 phpunit/phpunit: ^8.5 (9.1.5 available)
478 wikimedia/testing-access-wrapper: 1.0.0
479
480Source code is licensed under the AGPL.

libup's expectation is the fallback pure-PHP parser can be used, but it looks like something in phan-taint-check-plugin is expecting the ast extension to be installed.

Related Objects