Timo Tijhof
Timo Tijhof
Same here. ``` 30 verbose stack TypeError: Cannot convert undefined or null to object 30 verbose stack at Function.keys () 30 verbose stack at Deprecate.exec (/usr/local/lib/node_modules/npm/lib/commands/deprecate.js:55:12) 30 verbose stack at...
See for an easy way to confirm the issue.
Declining for now, but don't hesitate to let us know if you can reproduce it again (either here, happy to re-open! Or as new issue).
I implemented something similar to what we described here in f578596345f8ab5a019bf1e593555ed6bf62a05a. I approached it a bit differently after I realized we could split things `typeof` vs `objectType` thus removing the...
@adamfuhrer I've reproduced the issue and narrowed it down to the cause that `"type": "module"` is used in `package.json`, which means that upon re-running the tests and re-importing the same...
Can you post a recent failing build and possible copy some of its output onto the issue here for later reference? (given GH Actions logs are quite ephemeral) The question...
@Alkarex Aha, so I hadn't realized this before but is it fair to assume then that this rewrite is intentional and mainly (or solely?) for the frontend's use case of...
For future reference: **[Demo](https://phan.github.io/demo/?code=%3C%3Fphp%0Anamespace+Guc%3B%0A%0Aclass+ChronologyOutput+%7B%0A++++private+%24changes+%3D+array%28%29%3B%0A%0A++++private+function+add%28Wiki+%24wiki%2C+Contribs+%24contribs%29+%7B%0A++++++++if+%28%24contribs-%3EhasContribs%28%29%29+%7B%0A++++++++++++foreach+%28%24contribs-%3EgetContribs%28%29+as+%24rc%29+%7B%0A++++++++++++++++%24rc-%3Eguc_wiki+%3D+%24wiki%3B%0A++++++++++++++++%24this-%3Echanges%5B%5D+%3D+%24rc%3B%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%0A%0A++++public+function+output%28%29+%7B%0A++++++++%24changes+%3D+%24this-%3Echanges%3B%0A++++++++%27%40phan-debug-var+%24changes%27%3B++%2F%2F+non-empty-list%3Cmixed%3E+-+incorrect%0A++++++++%24prevDate+%3D+null%3B%0A++++++++%24inList+%3D+false%3B%0A++++++++foreach+%28%24this-%3Echanges+as+%24rc%29+%7B%0A++++++++++++if+%28%21%24inList%29+%7B%0A++++++++++++++++%2F%2F+If+this+is+the+first+result+after+a+new+heading%2C%0A++++++++++++++++%2F%2F+start+a+list.%0A++++++++++++++++%24inList+%3D+true%3B%0A++++++++++++++++print+%22%5Cn%3Cul%3E%5Cn%22%3B%0A++++++++++++%7D%0A++++++++++++%2F%2Fprint+%24this-%3EmakeChangeLine%28%24rc%29%3B%0A++++++++%7D%0A++++++++if+%28%24inList%29+%7B%0A++++++++++++%2F%2F+Make+sure+we+close+the+last+list%0A++++++++++++%24inList+%3D+false%3B%0A++++++++++++print+%27%3C%2Ful%3E%27%3B%0A++++++++%7D%0A++++%7D%0A%7D)** ```php
I noticed a similar issue with using `self`. I had thought it would track this as being similarly local as `$this`, but it does not: [Demo](https://phan.github.io/demo/?code=%3C%3Fphp%0Aclass+MWCryptHash+%7B%0A++++protected+static+%3Fstring+%24algo+%3D+null%3B%0A++++%0A++++%2F**+%40return+string+*%2F%0A++++public+static+function+hashAlgo%28%29+%7B%0A%09%09if+%28+self%3A%3A%24algo+%21%3D%3D+null+%29+%7B%0A%09%09%09return+self%3A%3A%24algo%3B%0A%09%09%7D%0A%09%09%24algos+%3D+hash_hmac_algos%28%29%3B%0A%09%09foreach+%28+%5B+%27whirlpool%27%2C+%27sha256%27+%5D+as+%24algorithm+%29+%7B%0A%09%09++++if+%28+in_array%28+%24algorithm%2C+%24algos%2C+true+%29+%29+%7B%0A++++%09%09%09self%3A%3A%24algo+%3D+%24algorithm%3B%0A++++%09%09%09return+self%3A%3A%24algo%3B%0A%09%09++++%7D%0A%09%09%7D%0A%09%09throw+new+DomainException%28+%27Could+not+find+an+acceptable+hashing+function.%27+%29%3B%0A%09%7D%0A%7D%0Aecho+MWCryptHash%3A%3AhashAlgo%28%29%3B) ```php class MWCryptHash {...
Limited example that I'm running into with MediaWiki code: ```php