The function ctools_modal_add_plugin_js() contains calls to file(exists(...)). From the context it can be seen that this was supposed to read file_exists(...).
Source: https://git.drupalcode.org/project/ctools/blob/7712ed7d1/includes/modal....
The function is marked as deprecated, but still used by the following functions:
- ctools_context_handler_edit_criteria()
- ctools_context_admin_includes()
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3048896-3.patch | 1017 bytes | joelpittet |
Comments
Comment #2
ciss commentedComment #3
joelpittetThanks for the report @ciss, that looks wrong.
Comment #5
joelpittetI've committed this to the dev release for the next release.
Comment #6
ciss commentedThanks! Btw, I discovered these while running phan with the PHP7 compatibility config.
Comment #7
joelpittetIs there documentation around that setup someplace? I was playing with PHPStan at drupalcon for @deprecated
https://github.com/mglaman/drupal-check/wiki/Drupal-9-Readiness
Comment #9
chris matthews commented