- Status changed to Closed: duplicate
over 1 year ago 11:14pm 26 July 2023 - 🇦🇺Australia acbramley
Seems like this is a dupe of 🐛 Drupal calls should be avoided in classes, use dependency injection instead Fixed
We should not use \Drupal calls in OO code starting in the 2.x branch.
Run PHPStan, using the following phpstan.neon file:
parameters:
level: 2
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
- "#^Unsafe usage of new static#"
# Ignore PHPUnit Prophecy class reflection errors.
- "#^Call to an undefined method Prophecy#"
drupal:
entityMapping:
access_scheme:
class: Drupal\workbench_access\Entity\AccessScheme
storage: Drupal\Core\Entity\ContentEntityStorageBase
section_association:
class: Drupal\workbench_access\Entity\SectionAssociation
storage: Drupal\workbench_access\SectionAssociationStorage
Fix the errors reported by PHPStan.
Fix the errors reported by PHPStan.
None
None
None
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Seems like this is a dupe of 🐛 Drupal calls should be avoided in classes, use dependency injection instead Fixed