Closed (won't fix)
Project:
USAJobs
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
23 May 2020 at 15:36 UTC
Updated:
29 May 2020 at 05:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vishalkhode commentedComment #3
vishalkhode commentedPlease review.

Comment #4
vishalkhode commentedComment #5
mradcliffeNice work. Thank you for the patch, @vishalkhode.
Having to rename the class seems like it is a bug in phpstan or drupal-check.
This should be okay though as long as cache is cleared when the module is updated. Since the module doesn't have a stable release, it probably is OK.
Comment #6
phoang commentedThis is no longer used on new version of Drupal 9 release.
Comment #7
vishalkhode commentedHi mradcliffe/phoang,
Not sure, what exactly you mean by `This is no longer used on Drupal 9 version.`As mentioned by drupal check that: drupal_render & format_date function in now deprecated (https://api.drupal.org/api/drupal/core%21includes%21common.inc/function/..., https://api.drupal.org/api/drupal/core%21includes%21common.inc/function/...) and rather service has to be used instead and same I did with patch.
Also, class rename is not a bug in phpstan or drupal-check. This is correct error thrown because class name and filename must have to be the exactly same (case sensitive). and this is as the Drupal coding standard as well.
Thanks,
Vishal
Comment #8
mradcliffe@phoang, do you mean that this module is no longer supported or maintained for Drupal 9?
It may make sense to update the module page with regard to the status of the module if that is the case.
Comment #9
phoang commentedSorry guys for the confusion. I meant that the current module has been writing with new API structures and it will be ready for Drupal 9 version. Therefor, the patch of the file is no longer used in upcoming Drupal 9 release version.
Comment #10
vishalkhode commentedOk, thanks guys for the confirmation.