Created
June 5, 2017 21:44
-
-
Save larowlan/60a595708be3560a0579259e2023703b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: TypeCoercion - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:61 - Argument 1 of Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator::__construct expects Drupal\Core\Entity\EntityTypeManagerInterface, parent type object provided | |
$container->get('entity_type.manager'), | |
INFO: MissingReturnType - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:59 - Method Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator::create does not have a return type | |
ERROR: PossiblyNullReference - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:81 - Cannot call method hasState on possibly null variable $workflow | |
if (!$workflow->hasState($entity->moderation_state->value)) { | |
ERROR: PossiblyNullReference - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:93 - Cannot call method hasTranslation on possibly null variable $original_entity | |
if (!$entity->isDefaultTranslation() && $original_entity->hasTranslation($entity->language()->getId())) { | |
ERROR: PossiblyNullReference - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:97 - Cannot call method getState on possibly null variable $workflow | |
$new_state = $workflow->getState($entity->moderation_state->value) ?: $workflow->getInitialState(); | |
ERROR: PossiblyNullReference - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:98 - Cannot call method getState on possibly null variable $workflow | |
$original_state = $workflow->getState($original_entity->moderation_state->value); | |
INFO: MissingReturnType - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:70 - Method Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator::validate does not have a return type, expecting void | |
ERROR: PossiblyNullArgument - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:122 - Argument 2 of Drupal\content_moderation\ModerationInformationInterface::getLatestRevision cannot be null, possibly null value provided | |
$original_entity = $this->moderationInformation->getLatestRevision($entity->getEntityTypeId(), $entity->id()); | |
ERROR: NoInterfaceProperties - core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php:128 - Interfaces cannot have properties | |
return !($entity->moderation_state && $original_entity && $original_id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment