Problem/Motivation
We're trying to do a little modernization of simpletest/phpunit over in #2641632: Refactor simpletest's *_phpunit_*() (and junit) functions etc. to a class, deprecate
Over there, @dawehner discovered that simpletest_phpunit_configuration_filepath() looks like dead code.
Proposed resolution
Figure out if it's dead code.
Remove it.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | interdiff.txt | 732 bytes | mile23 |
| #16 | 2798273_16.patch | 916 bytes | mile23 |
| #13 | interdiff-2798273.txt | 600 bytes | pfructuoso |
| #13 | 2798273-13.patch | 911 bytes | pfructuoso |
| #10 | 2798273_10.patch | 773 bytes | mile23 |
Comments
Comment #2
mile23Comment #3
joelpittetHad a grep around and it is indeed dead, thanks @Mile23
Comment #4
dawehnerWell, people could still see this as some sort of BC break.
Comment #5
catchYes postponing on the current discussion happening at #2550249: [meta] Document @internal APIs both explicitly in phpdoc and implicitly in d.o documentation about procedural functions, since we don't have an explicit policy for them at the moment.
Comment #6
catchComment #8
mile23Comment #9
mile23So should we mark the function as deprecated?
Comment #10
mile23This patch just deprecates the function.
Comment #11
joelpittetYes:)
Comment #12
wim leersShouldn't we have an accompanying
trigger_error(…, E_USER_DEPRECATED)call?Comment #13
pfructuoso commented@Wim Leers, good point. Lets see the deprecation howto
Comment #14
dawehnerComment #15
cilefen commentedI cannot find an example in core where we namespace a @see to a global function.
A change record is not necessary. Does anyone think this deprecation warrants one?
Comment #16
mile23If there were usages of this function then we'd for sure need to make a change record. I'm pretty sure we don't need one.
Here are the standards for @see: https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
Global functions should not be namespaced but we don't have a coder rule for it yet, apparently.
Comment #17
dawehnerCool, one less thing to care about.
Comment #19
cilefen commentedCommitted dccab71 and pushed to 8.4.x. Thanks!