Closed ernilambar closed 5 months ago
Requesting for feedback whether this approach is good or not.
cc: @swissspidy @felixarntz @mukeshpanchal27
@ernilambar I like the idea of optionally supporting the inclusion of the check identifier. That said, I think we'll need to carefully think about how to implement that change. Preferably, this should be handled in a central place, without having to define the check identifiers as both array keys and in each class.
@felixarntz May be this approach is better. Please review it. https://github.com/WordPress/plugin-check/pull/380
In this PR:
Check
is assumed to have a name. Soget_name()
has been added tointerface Check
.check
has been added tofinal class Check_Result
.includes/Traits/Amend_Check_Result.php
- Methods are updated to accomodate newly addedcheck
field.Late_Escaping_Check.php
:get_name()
method is implemented. Eg:Output: