diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1a65bc2d88..2065e5cc23 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5616,48 +5616,12 @@ parameters: count: 1 path: src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCopyContentEvent\:\:getVersionInfo\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCopyContentEvent\:\:\$versionInfo \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentDraftEvent\:\:getContentDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' identifier: return.type count: 1 path: src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentDraftEvent\:\:getCreator\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentDraftEvent\:\:getVersionInfo\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentDraftEvent\:\:\$creator \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentDraftEvent\:\:\$versionInfo \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -5666,1305 +5630,369 @@ parameters: - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:__construct\(\) has parameter \$locationCreateStructs with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:getLocationCreateStructs\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:\$locationCreateStructs type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteContentEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteContentEvent\:\:getLocations\(\) should return array but returns array\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteContentEvent\:\:setLocations\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteContentEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteTranslationEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteTranslationEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeDeleteTranslationEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:__construct\(\) has parameter \$translations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:getTranslations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentMetadataEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CopyContentEvent\:\:getVersionInfo\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/CopyContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CopyContentEvent\:\:\$versionInfo \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/CopyContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentDraftEvent\:\:getCreator\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentDraftEvent\:\:getVersionInfo\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentDraftEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentDraftEvent\:\:\$creator \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentDraftEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentDraftEvent\:\:\$versionInfo \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\VersionInfo\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentEvent\:\:__construct\(\) has parameter \$locationCreateStructs with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentEvent\:\:getLocationCreateStructs\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\CreateContentEvent\:\:\$locationCreateStructs type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/CreateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteContentEvent\:\:__construct\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/DeleteContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteContentEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/DeleteContentEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteContentEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/DeleteContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteTranslationEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/Content/DeleteTranslationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteTranslationEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/Content/DeleteTranslationEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\DeleteTranslationEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/Content/DeleteTranslationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\PublishVersionEvent\:\:__construct\(\) has parameter \$translations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/PublishVersionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\PublishVersionEvent\:\:getTranslations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/PublishVersionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\UpdateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/Content/UpdateContentEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCopyContentTypeEvent\:\:getContentTypeCopy\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentType but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentType\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCopyContentTypeEvent\:\:getCreator\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCopyContentTypeEvent\:\:\$creator \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeDraftEvent\:\:getContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeEvent\:\:__construct\(\) has parameter \$contentTypeGroups with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeEvent\:\:getContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeEvent\:\:getContentTypeGroups\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeEvent\:\:\$contentTypeGroups type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeGroupEvent\:\:getContentTypeGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeGroup\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeRemoveContentTypeTranslationEvent\:\:getNewContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\CopyContentTypeEvent\:\:getCreator\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\CopyContentTypeEvent\:\:\$creator \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\CreateContentTypeEvent\:\:__construct\(\) has parameter \$contentTypeGroups with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\CreateContentTypeEvent\:\:getContentTypeGroups\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\CreateContentTypeEvent\:\:\$contentTypeGroups type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeCreateLanguageEvent\:\:getLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeDisableLanguageEvent\:\:getDisabledLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeEnableLanguageEvent\:\:getEnabledLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeUpdateLanguageNameEvent\:\:getUpdatedLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeCopySubtreeEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeCreateLocationEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeHideLocationEvent\:\:getHiddenLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeUnhideLocationEvent\:\:getRevealedLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeUpdateLocationEvent\:\:getUpdatedLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Notification\\BeforeCreateNotificationEvent\:\:getNotification\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Notification\\Notification but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Notification\\Notification\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeCreateObjectStateEvent\:\:getObjectState\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeCreateObjectStateGroupEvent\:\:getObjectStateGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeSetPriorityOfObjectStateEvent\:\:__construct\(\) has parameter \$priority with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeSetPriorityOfObjectStateEvent\:\:getPriority\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeSetPriorityOfObjectStateEvent\:\:\$priority has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeUpdateObjectStateEvent\:\:getUpdatedObjectState\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeUpdateObjectStateGroupEvent\:\:getUpdatedObjectStateGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\SetPriorityOfObjectStateEvent\:\:__construct\(\) has parameter \$priority with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\SetPriorityOfObjectStateEvent\:\:getPriority\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\SetPriorityOfObjectStateEvent\:\:\$priority has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\AddPolicyByRoleDraftEvent\:\:\$updatedRoleDraft has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/Role/AddPolicyByRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\AssignRoleToUserEvent\:\:getRoleLimitation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\AssignRoleToUserEvent\:\:\$roleLimitation \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\AssignRoleToUserGroupEvent\:\:getRoleLimitation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\AssignRoleToUserGroupEvent\:\:\$roleLimitation \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAddPolicyByRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAssignRoleToUserEvent\:\:getRoleLimitation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAssignRoleToUserEvent\:\:\$roleLimitation \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAssignRoleToUserGroupEvent\:\:getRoleLimitation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAssignRoleToUserGroupEvent\:\:\$roleLimitation \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Limitation\\RoleLimitation\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCopyRoleEvent\:\:getCopiedRole\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Role but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Role\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCreateRoleDraftEvent\:\:getRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCreateRoleEvent\:\:getRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeRemovePolicyByRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeUpdatePolicyByRoleDraftEvent\:\:getUpdatedPolicyDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\PolicyDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\PolicyDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeUpdateRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Section\\BeforeCreateSectionEvent\:\:getSection\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Section\\BeforeUpdateSectionEvent\:\:getUpdatedSection\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Setting\\BeforeCreateSettingEvent\:\:getSetting\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Setting\\BeforeUpdateSettingEvent\:\:getUpdatedSetting\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeCheckTokenEvent\:\:getResult\(\) should return bool but returns bool\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Token/BeforeCheckTokenEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeGenerateTokenEvent\:\:getToken\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Token/BeforeGenerateTokenEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeGetTokenEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Token/BeforeGetTokenEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeDeleteTrashItemEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResult but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResult\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeEmptyTrashEvent\:\:getResultList\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResultList but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResultList\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeRecoverEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeRecoverEvent\:\:getNewParentLocation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeRecoverEvent\:\:\$newParentLocation \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\RecoverEvent\:\:getNewParentLocation\(\) never returns null so it can be removed from the return type\.$#' - identifier: return.unusedType - count: 1 - path: src/contracts/Repository/Events/Trash/RecoverEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\RecoverEvent\:\:\$newParentLocation \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' - identifier: assign.propertyType - count: 1 - path: src/contracts/Repository/Events/Trash/RecoverEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URL\\BeforeUpdateUrlEvent\:\:getUpdatedUrl\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\URL\\URL but returns Ibexa\\Contracts\\Core\\Repository\\Values\\URL\\URL\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$resource with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getAlwaysAvailable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getForwarding\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getPath\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getUrlAlias\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:\$alwaysAvailable has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:\$forwarding has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:\$path has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:\$resource has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getAlwaysAvailable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getForwarding\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getPath\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getUrlAlias\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\|null\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:\$alwaysAvailable has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:\$forwarding has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:\$path has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeRemoveAliasesEvent\:\:__construct\(\) has parameter \$aliasList with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeRemoveAliasesEvent\:\:getAliasList\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeRemoveAliasesEvent\:\:\$aliasList type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$resource with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:getAlwaysAvailable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:getForwarding\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:getPath\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:getResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:\$alwaysAvailable has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:\$forwarding has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:\$path has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:\$resource has no type specified\.$#' - identifier: missingType.property - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:getAlwaysAvailable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:getForwarding\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:getLanguageCode\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:getPath\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:\$alwaysAvailable has no type specified\.$#' - identifier: missingType.property + identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php + path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:\$forwarding has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeCreateContentEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php + path: src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:\$languageCode has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:__construct\(\) has parameter \$translations with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php + path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:\$path has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php + path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\RemoveAliasesEvent\:\:__construct\(\) has parameter \$aliasList with no value type specified in iterable type array\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforePublishVersionEvent\:\:getTranslations\(\) return type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php + path: src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\RemoveAliasesEvent\:\:getAliasList\(\) return type has no value type specified in iterable type array\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php + path: src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\RemoveAliasesEvent\:\:\$aliasList type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php + path: src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:__construct\(\) has parameter \$destinationUrl with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\BeforeUpdateContentMetadataEvent\:\:getContent\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:__construct\(\) has parameter \$forward with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\PublishVersionEvent\:\:__construct\(\) has parameter \$translations with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/Content/PublishVersionEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:__construct\(\) has parameter \$sourceUrl with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Content\\UpdateContentEvent\:\:__construct\(\) has parameter \$fieldIdentifiersToValidate with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/Content/UpdateContentEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:getDestinationUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCopyContentTypeEvent\:\:getContentTypeCopy\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentType but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentType\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:getForward\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeDraftEvent\:\:getContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:getSourceUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeEvent\:\:getContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:getUrlWildcard\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcard but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcard\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeCreateContentTypeGroupEvent\:\:getContentTypeGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeGroup\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:\$destinationUrl has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ContentType\\BeforeRemoveContentTypeTranslationEvent\:\:getNewContentTypeDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\ContentTypeDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:\$forward has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeCreateLanguageEvent\:\:getLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:\$sourceUrl has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeDisableLanguageEvent\:\:getDisabledLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php + path: src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeTranslateEvent\:\:__construct\(\) has parameter \$url with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeEnableLanguageEvent\:\:getEnabledLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php + path: src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeTranslateEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcardTranslationResult but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcardTranslationResult\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Language\\BeforeUpdateLanguageNameEvent\:\:getUpdatedLanguage\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Language\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php + path: src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeTranslateEvent\:\:getUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeCopySubtreeEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php + path: src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeTranslateEvent\:\:\$url has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeCreateLocationEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php + path: src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:__construct\(\) has parameter \$destinationUrl with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeHideLocationEvent\:\:getHiddenLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:__construct\(\) has parameter \$forward with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeUnhideLocationEvent\:\:getRevealedLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:__construct\(\) has parameter \$sourceUrl with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Location\\BeforeUpdateLocationEvent\:\:getUpdatedLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:getDestinationUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Notification\\BeforeCreateNotificationEvent\:\:getNotification\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Notification\\Notification but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Notification\\Notification\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:getForward\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeCreateObjectStateEvent\:\:getObjectState\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:getSourceUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeCreateObjectStateGroupEvent\:\:getObjectStateGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:\$destinationUrl has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeUpdateObjectStateEvent\:\:getUpdatedObjectState\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectState\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:\$forward has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\ObjectState\\BeforeUpdateObjectStateGroupEvent\:\:getUpdatedObjectStateGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ObjectState\\ObjectStateGroup\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\CreateEvent\:\:\$sourceUrl has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeAddPolicyByRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/CreateEvent.php + path: src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\TranslateEvent\:\:__construct\(\) has parameter \$url with no type specified\.$#' - identifier: missingType.parameter + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCopyRoleEvent\:\:getCopiedRole\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Role but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\Role\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/TranslateEvent.php + path: src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\TranslateEvent\:\:getUrl\(\) has no return type specified\.$#' - identifier: missingType.return + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCreateRoleDraftEvent\:\:getRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/TranslateEvent.php + path: src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\TranslateEvent\:\:\$url has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeCreateRoleEvent\:\:getRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/URLWildcard/TranslateEvent.php + path: src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeCreateUserEvent\:\:__construct\(\) has parameter \$parentGroups with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeRemovePolicyByRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeCreateUserEvent.php + path: src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeCreateUserEvent\:\:getParentGroups\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeUpdatePolicyByRoleDraftEvent\:\:getUpdatedPolicyDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\PolicyDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\PolicyDraft\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeCreateUserEvent.php + path: src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeCreateUserEvent\:\:getUser\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Role\\BeforeUpdateRoleDraftEvent\:\:getUpdatedRoleDraft\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\RoleDraft\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeCreateUserEvent.php + path: src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeCreateUserEvent\:\:\$parentGroups type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Section\\BeforeCreateSectionEvent\:\:getSection\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeCreateUserEvent.php + path: src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeCreateUserGroupEvent\:\:getUserGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\UserGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\UserGroup\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Section\\BeforeUpdateSectionEvent\:\:getUpdatedSection\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeCreateUserGroupEvent.php + path: src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Setting\\BeforeCreateSettingEvent\:\:getSetting\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php + path: src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserEvent\:\:getLocations\(\) should return array but returns array\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Setting\\BeforeUpdateSettingEvent\:\:getUpdatedSetting\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Setting\\Setting\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php + path: src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserEvent\:\:setLocations\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeCheckTokenEvent\:\:getResult\(\) should return bool but returns bool\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php + path: src/contracts/Repository/Events/Token/BeforeCheckTokenEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeGenerateTokenEvent\:\:getToken\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php + path: src/contracts/Repository/Events/Token/BeforeGenerateTokenEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserGroupEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Token\\BeforeGetTokenEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Token\\Token\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php + path: src/contracts/Repository/Events/Token/BeforeGetTokenEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserGroupEvent\:\:getLocations\(\) should return array but returns array\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeDeleteTrashItemEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResult but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResult\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php + path: src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserGroupEvent\:\:setLocations\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeEmptyTrashEvent\:\:getResultList\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResultList but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Trash\\TrashItemDeleteResultList\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php + path: src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeDeleteUserGroupEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\Trash\\BeforeRecoverEvent\:\:getLocation\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php + path: src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeUpdateUserEvent\:\:getUpdatedUser\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URL\\BeforeUpdateUrlEvent\:\:getUpdatedUrl\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\URL\\URL but returns Ibexa\\Contracts\\Core\\Repository\\Values\\URL\\URL\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeUpdateUserEvent.php + path: src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeUpdateUserGroupEvent\:\:getUpdatedUserGroup\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\UserGroup but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\UserGroup\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateGlobalUrlAliasEvent\:\:getUrlAlias\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeUpdateUserGroupEvent.php + path: src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeUpdateUserPasswordEvent\:\:getUpdatedUser\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\BeforeCreateUrlAliasEvent\:\:getUrlAlias\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\|null\.$#' identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/BeforeUpdateUserPasswordEvent.php + path: src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\BeforeUpdateUserTokenEvent\:\:getUpdatedUser\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User but returns Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' - identifier: return.type + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/BeforeUpdateUserTokenEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\CreateUserEvent\:\:__construct\(\) has parameter \$parentGroups with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/CreateUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\CreateUserEvent\:\:getParentGroups\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/CreateUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\CreateUserEvent\:\:\$parentGroups type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/CreateUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserEvent\:\:__construct\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateGlobalUrlAliasEvent\:\:__construct\(\) has parameter \$resource with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/DeleteUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$alwaysAvailable with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/DeleteUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$forwarding with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php + + - + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$languageCode with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/DeleteUserEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserGroupEvent\:\:__construct\(\) has parameter \$locations with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLAlias\\CreateUrlAliasEvent\:\:__construct\(\) has parameter \$path with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/DeleteUserGroupEvent.php + path: src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserGroupEvent\:\:getLocations\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeCreateEvent\:\:getUrlWildcard\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcard but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcard\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/DeleteUserGroupEvent.php + path: src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserGroupEvent\:\:\$locations type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\BeforeTranslateEvent\:\:getResult\(\) should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcardTranslationResult but returns Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLWildcardTranslationResult\|null\.$#' + identifier: return.type count: 1 - path: src/contracts/Repository/Events/User/DeleteUserGroupEvent.php + path: src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Events\\User\\UpdateUserGroupEvent\:\:\$updatedUserGroup has no type specified\.$#' - identifier: missingType.property + message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\URLWildcard\\TranslateEvent\:\:__construct\(\) has parameter \$url with no type specified\.$#' + identifier: missingType.parameter count: 1 - path: src/contracts/Repository/Events/User/UpdateUserGroupEvent.php + path: src/contracts/Repository/Events/URLWildcard/TranslateEvent.php - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Events\\UserPreference\\BeforeSetUserPreferenceEvent\:\:__construct\(\) has parameter \$userPreferenceSetStructs with no value type specified in iterable type array\.$#' @@ -8922,18 +7950,6 @@ parameters: count: 1 path: src/lib/Event/UserService.php - - - message: '#^Parameter \#1 \$locations of class Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserEvent constructor expects array, array\|iterable\ given\.$#' - identifier: argument.type - count: 1 - path: src/lib/Event/UserService.php - - - - message: '#^Parameter \#1 \$locations of class Ibexa\\Contracts\\Core\\Repository\\Events\\User\\DeleteUserGroupEvent constructor expects array, array\|iterable\ given\.$#' - identifier: argument.type - count: 1 - path: src/lib/Event/UserService.php - - message: '#^Method Ibexa\\Core\\FieldType\\Author\\AuthorCollection\:\:removeAuthorsById\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/src/contracts/Repository/ContentService.php b/src/contracts/Repository/ContentService.php index dea1594193..923467e09e 100644 --- a/src/contracts/Repository/ContentService.php +++ b/src/contracts/Repository/ContentService.php @@ -223,7 +223,7 @@ public function updateContentMetadata(ContentInfo $contentInfo, ContentMetadataU * * @return array Affected Location IDs (List of Location IDs of the Content that was deleted). */ - public function deleteContent(ContentInfo $contentInfo): iterable; + public function deleteContent(ContentInfo $contentInfo): array; /** * Creates a draft from a published or archived version. diff --git a/src/contracts/Repository/Decorator/ContentServiceDecorator.php b/src/contracts/Repository/Decorator/ContentServiceDecorator.php index fdf280423d..483cb0760c 100644 --- a/src/contracts/Repository/Decorator/ContentServiceDecorator.php +++ b/src/contracts/Repository/Decorator/ContentServiceDecorator.php @@ -129,7 +129,7 @@ public function updateContentMetadata( return $this->innerService->updateContentMetadata($contentInfo, $contentMetadataUpdateStruct); } - public function deleteContent(ContentInfo $contentInfo): iterable + public function deleteContent(ContentInfo $contentInfo): array { return $this->innerService->deleteContent($contentInfo); } diff --git a/src/contracts/Repository/Decorator/UserServiceDecorator.php b/src/contracts/Repository/Decorator/UserServiceDecorator.php index 0e7ba27413..21c71ea117 100644 --- a/src/contracts/Repository/Decorator/UserServiceDecorator.php +++ b/src/contracts/Repository/Decorator/UserServiceDecorator.php @@ -65,7 +65,7 @@ public function loadSubUserGroups( return $this->innerService->loadSubUserGroups($userGroup, $offset, $limit, $prioritizedLanguages); } - public function deleteUserGroup(UserGroup $userGroup): iterable + public function deleteUserGroup(UserGroup $userGroup): array { return $this->innerService->deleteUserGroup($userGroup); } @@ -134,7 +134,7 @@ public function loadUserByToken( return $this->innerService->loadUserByToken($hash, $prioritizedLanguages); } - public function deleteUser(User $user): iterable + public function deleteUser(User $user): array { return $this->innerService->deleteUser($user); } diff --git a/src/contracts/Repository/Events/Bookmark/BeforeCreateBookmarkEvent.php b/src/contracts/Repository/Events/Bookmark/BeforeCreateBookmarkEvent.php index 5dd37d081f..129ab4352a 100644 --- a/src/contracts/Repository/Events/Bookmark/BeforeCreateBookmarkEvent.php +++ b/src/contracts/Repository/Events/Bookmark/BeforeCreateBookmarkEvent.php @@ -13,8 +13,7 @@ final class BeforeCreateBookmarkEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Bookmark/BeforeDeleteBookmarkEvent.php b/src/contracts/Repository/Events/Bookmark/BeforeDeleteBookmarkEvent.php index def4418944..cd338b6a44 100644 --- a/src/contracts/Repository/Events/Bookmark/BeforeDeleteBookmarkEvent.php +++ b/src/contracts/Repository/Events/Bookmark/BeforeDeleteBookmarkEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteBookmarkEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Bookmark/CreateBookmarkEvent.php b/src/contracts/Repository/Events/Bookmark/CreateBookmarkEvent.php index 6117d15ab1..9c3f0dbe1b 100644 --- a/src/contracts/Repository/Events/Bookmark/CreateBookmarkEvent.php +++ b/src/contracts/Repository/Events/Bookmark/CreateBookmarkEvent.php @@ -13,8 +13,7 @@ final class CreateBookmarkEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Bookmark/DeleteBookmarkEvent.php b/src/contracts/Repository/Events/Bookmark/DeleteBookmarkEvent.php index 72fee09b22..b1d462f9d8 100644 --- a/src/contracts/Repository/Events/Bookmark/DeleteBookmarkEvent.php +++ b/src/contracts/Repository/Events/Bookmark/DeleteBookmarkEvent.php @@ -13,8 +13,7 @@ final class DeleteBookmarkEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Content/AddRelationEvent.php b/src/contracts/Repository/Events/Content/AddRelationEvent.php index 7bbc561cde..f6baa24fa8 100644 --- a/src/contracts/Repository/Events/Content/AddRelationEvent.php +++ b/src/contracts/Repository/Events/Content/AddRelationEvent.php @@ -15,14 +15,11 @@ final class AddRelationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Relation */ - private $relation; + private Relation $relation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $sourceVersion; + private VersionInfo $sourceVersion; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $destinationContent; + private ContentInfo $destinationContent; public function __construct( Relation $relation, diff --git a/src/contracts/Repository/Events/Content/BeforeAddRelationEvent.php b/src/contracts/Repository/Events/Content/BeforeAddRelationEvent.php index 4a5ce76e67..c593d16128 100644 --- a/src/contracts/Repository/Events/Content/BeforeAddRelationEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeAddRelationEvent.php @@ -16,14 +16,11 @@ final class BeforeAddRelationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $sourceVersion; + private VersionInfo $sourceVersion; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $destinationContent; + private ContentInfo $destinationContent; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Relation|null */ - private $relation; + private ?Relation $relation = null; public function __construct(VersionInfo $sourceVersion, ContentInfo $destinationContent) { diff --git a/src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php b/src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php index e4833b4275..b049dcff38 100644 --- a/src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeCopyContentEvent.php @@ -17,17 +17,13 @@ final class BeforeCopyContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct */ - private $destinationLocationCreateStruct; + private LocationCreateStruct $destinationLocationCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private ?VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $content; + private ?Content $content = null; public function __construct( ContentInfo $contentInfo, diff --git a/src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php b/src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php index 47afdbbe6e..e91cf7153e 100644 --- a/src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeCreateContentDraftEvent.php @@ -18,20 +18,15 @@ final class BeforeCreateContentDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private ?VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $creator; + private ?User $creator; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $language; + private ?Language $language; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $contentDraft; + private ?Content $contentDraft = null; public function __construct( ContentInfo $contentInfo, diff --git a/src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php b/src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php index 4c57ca3b9b..ef6e57c634 100644 --- a/src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeCreateContentEvent.php @@ -15,17 +15,15 @@ final class BeforeCreateContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentCreateStruct */ - private $contentCreateStruct; + private ContentCreateStruct $contentCreateStruct; - /** @var array */ - private $locationCreateStructs; + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] */ + private array $locationCreateStructs; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $content; + private ?Content $content = null; /** @var string[]|null */ - private $fieldIdentifiersToValidate; + private ?array $fieldIdentifiersToValidate; public function __construct( ContentCreateStruct $contentCreateStruct, @@ -42,6 +40,9 @@ public function getContentCreateStruct(): ContentCreateStruct return $this->contentCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] + */ public function getLocationCreateStructs(): array { return $this->locationCreateStructs; diff --git a/src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php b/src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php index 953ee3f6f3..6e6ed15831 100644 --- a/src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeDeleteContentEvent.php @@ -14,11 +14,10 @@ final class BeforeDeleteContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var array|null */ - private $locations; + /** @var int[]|null */ + private ?array $locations = null; public function __construct(ContentInfo $contentInfo) { @@ -30,6 +29,9 @@ public function getContentInfo(): ContentInfo return $this->contentInfo; } + /** + * @return int[] + */ public function getLocations(): array { if (!$this->hasLocations()) { @@ -39,11 +41,17 @@ public function getLocations(): array return $this->locations; } + /** + * @param int[]|null $locations + */ public function setLocations(?array $locations): void { $this->locations = $locations; } + /** + * @phpstan-assert-if-true !null $this->locations + */ public function hasLocations(): bool { return is_array($this->locations); diff --git a/src/contracts/Repository/Events/Content/BeforeDeleteRelationEvent.php b/src/contracts/Repository/Events/Content/BeforeDeleteRelationEvent.php index c628f72c19..e566d656a5 100644 --- a/src/contracts/Repository/Events/Content/BeforeDeleteRelationEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeDeleteRelationEvent.php @@ -14,11 +14,9 @@ final class BeforeDeleteRelationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $sourceVersion; + private VersionInfo $sourceVersion; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $destinationContent; + private ContentInfo $destinationContent; public function __construct(VersionInfo $sourceVersion, ContentInfo $destinationContent) { diff --git a/src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php b/src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php index 61c9763837..0cd313caf6 100644 --- a/src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeDeleteTranslationEvent.php @@ -13,12 +13,11 @@ final class BeforeDeleteTranslationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - private $languageCode; + private string $languageCode; - public function __construct(ContentInfo $contentInfo, $languageCode) + public function __construct(ContentInfo $contentInfo, string $languageCode) { $this->contentInfo = $contentInfo; $this->languageCode = $languageCode; @@ -29,7 +28,7 @@ public function getContentInfo(): ContentInfo return $this->contentInfo; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } diff --git a/src/contracts/Repository/Events/Content/BeforeDeleteVersionEvent.php b/src/contracts/Repository/Events/Content/BeforeDeleteVersionEvent.php index fa7245ad7a..9d2f5c782f 100644 --- a/src/contracts/Repository/Events/Content/BeforeDeleteVersionEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeDeleteVersionEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteVersionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; public function __construct(VersionInfo $versionInfo) { diff --git a/src/contracts/Repository/Events/Content/BeforeHideContentEvent.php b/src/contracts/Repository/Events/Content/BeforeHideContentEvent.php index 5d60bb8f5f..a8e0d262d6 100644 --- a/src/contracts/Repository/Events/Content/BeforeHideContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeHideContentEvent.php @@ -13,8 +13,7 @@ final class BeforeHideContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; public function __construct(ContentInfo $contentInfo) { diff --git a/src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php b/src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php index 130c2d802e..de6f50abd5 100644 --- a/src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php +++ b/src/contracts/Repository/Events/Content/BeforePublishVersionEvent.php @@ -15,14 +15,12 @@ final class BeforePublishVersionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $content; + private ?Content $content = null; /** @var string[] */ - private $translations; + private array $translations; public function __construct(VersionInfo $versionInfo, array $translations) { diff --git a/src/contracts/Repository/Events/Content/BeforeRevealContentEvent.php b/src/contracts/Repository/Events/Content/BeforeRevealContentEvent.php index 197b3baf8a..c394b1b7be 100644 --- a/src/contracts/Repository/Events/Content/BeforeRevealContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeRevealContentEvent.php @@ -13,8 +13,7 @@ final class BeforeRevealContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; public function __construct(ContentInfo $contentInfo) { diff --git a/src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php b/src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php index cac5490729..cbe677e35b 100644 --- a/src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeUpdateContentEvent.php @@ -16,17 +16,14 @@ final class BeforeUpdateContentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentUpdateStruct */ - private $contentUpdateStruct; + private ContentUpdateStruct $contentUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $content; + private ?Content $content = null; /** @var string[]|null */ - private $fieldIdentifiersToValidate; + private ?array $fieldIdentifiersToValidate; public function __construct( VersionInfo $versionInfo, diff --git a/src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php b/src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php index f940a44da8..18f12d5b02 100644 --- a/src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeUpdateContentMetadataEvent.php @@ -16,14 +16,11 @@ final class BeforeUpdateContentMetadataEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentMetadataUpdateStruct */ - private $contentMetadataUpdateStruct; + private ContentMetadataUpdateStruct $contentMetadataUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content|null */ - private $content; + private ?Content $content = null; public function __construct(ContentInfo $contentInfo, ContentMetadataUpdateStruct $contentMetadataUpdateStruct) { diff --git a/src/contracts/Repository/Events/Content/CopyContentEvent.php b/src/contracts/Repository/Events/Content/CopyContentEvent.php index e63a5c9e85..baa1b107e1 100644 --- a/src/contracts/Repository/Events/Content/CopyContentEvent.php +++ b/src/contracts/Repository/Events/Content/CopyContentEvent.php @@ -16,17 +16,13 @@ final class CopyContentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $content; + private Content $content; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct */ - private $destinationLocationCreateStruct; + private LocationCreateStruct $destinationLocationCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private ?VersionInfo $versionInfo; public function __construct( Content $content, diff --git a/src/contracts/Repository/Events/Content/CreateContentDraftEvent.php b/src/contracts/Repository/Events/Content/CreateContentDraftEvent.php index 3955565119..16766cb9f4 100644 --- a/src/contracts/Repository/Events/Content/CreateContentDraftEvent.php +++ b/src/contracts/Repository/Events/Content/CreateContentDraftEvent.php @@ -17,20 +17,15 @@ final class CreateContentDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $contentDraft; + private Content $contentDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private ?VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $creator; + private ?User $creator; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $language; + private ?Language $language; public function __construct( Content $contentDraft, diff --git a/src/contracts/Repository/Events/Content/CreateContentEvent.php b/src/contracts/Repository/Events/Content/CreateContentEvent.php index 5a7d2fb3e1..db9b463e01 100644 --- a/src/contracts/Repository/Events/Content/CreateContentEvent.php +++ b/src/contracts/Repository/Events/Content/CreateContentEvent.php @@ -14,18 +14,20 @@ final class CreateContentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentCreateStruct */ - private $contentCreateStruct; + private ContentCreateStruct $contentCreateStruct; - /** @var array */ - private $locationCreateStructs; + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] */ + private array $locationCreateStructs; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $content; + private Content $content; /** @var string[]|null */ - private $fieldIdentifiersToValidate; + private ?array $fieldIdentifiersToValidate; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs + * @param string[]|null $fieldIdentifiersToValidate + */ public function __construct( Content $content, ContentCreateStruct $contentCreateStruct, @@ -43,6 +45,9 @@ public function getContentCreateStruct(): ContentCreateStruct return $this->contentCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct[] + */ public function getLocationCreateStructs(): array { return $this->locationCreateStructs; diff --git a/src/contracts/Repository/Events/Content/DeleteContentEvent.php b/src/contracts/Repository/Events/Content/DeleteContentEvent.php index 41e2599e33..02e758390c 100644 --- a/src/contracts/Repository/Events/Content/DeleteContentEvent.php +++ b/src/contracts/Repository/Events/Content/DeleteContentEvent.php @@ -13,12 +13,14 @@ final class DeleteContentEvent extends AfterEvent { - /** @var array */ - private $locations; + /** @var int[] */ + private array $locations; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; + /** + * @param int[] $locations + */ public function __construct( array $locations, ContentInfo $contentInfo @@ -27,6 +29,9 @@ public function __construct( $this->contentInfo = $contentInfo; } + /** + * @return int[] + */ public function getLocations(): array { return $this->locations; diff --git a/src/contracts/Repository/Events/Content/DeleteRelationEvent.php b/src/contracts/Repository/Events/Content/DeleteRelationEvent.php index 8252930efa..4b3f1cf79a 100644 --- a/src/contracts/Repository/Events/Content/DeleteRelationEvent.php +++ b/src/contracts/Repository/Events/Content/DeleteRelationEvent.php @@ -14,11 +14,9 @@ final class DeleteRelationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $sourceVersion; + private VersionInfo $sourceVersion; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $destinationContent; + private ContentInfo $destinationContent; public function __construct( VersionInfo $sourceVersion, diff --git a/src/contracts/Repository/Events/Content/DeleteTranslationEvent.php b/src/contracts/Repository/Events/Content/DeleteTranslationEvent.php index 16c2372409..14b687a4e2 100644 --- a/src/contracts/Repository/Events/Content/DeleteTranslationEvent.php +++ b/src/contracts/Repository/Events/Content/DeleteTranslationEvent.php @@ -13,14 +13,13 @@ final class DeleteTranslationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - private $languageCode; + private string $languageCode; public function __construct( ContentInfo $contentInfo, - $languageCode + string $languageCode ) { $this->contentInfo = $contentInfo; $this->languageCode = $languageCode; @@ -31,7 +30,7 @@ public function getContentInfo(): ContentInfo return $this->contentInfo; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } diff --git a/src/contracts/Repository/Events/Content/DeleteVersionEvent.php b/src/contracts/Repository/Events/Content/DeleteVersionEvent.php index 29cb76beb7..cc03953e87 100644 --- a/src/contracts/Repository/Events/Content/DeleteVersionEvent.php +++ b/src/contracts/Repository/Events/Content/DeleteVersionEvent.php @@ -13,8 +13,7 @@ final class DeleteVersionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; public function __construct(VersionInfo $versionInfo) { diff --git a/src/contracts/Repository/Events/Content/HideContentEvent.php b/src/contracts/Repository/Events/Content/HideContentEvent.php index 6cf729721f..829d9e72ac 100644 --- a/src/contracts/Repository/Events/Content/HideContentEvent.php +++ b/src/contracts/Repository/Events/Content/HideContentEvent.php @@ -13,8 +13,7 @@ final class HideContentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; public function __construct(ContentInfo $contentInfo) { diff --git a/src/contracts/Repository/Events/Content/PublishVersionEvent.php b/src/contracts/Repository/Events/Content/PublishVersionEvent.php index abd18bca8f..3f4efa7b8b 100644 --- a/src/contracts/Repository/Events/Content/PublishVersionEvent.php +++ b/src/contracts/Repository/Events/Content/PublishVersionEvent.php @@ -14,14 +14,12 @@ final class PublishVersionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $content; + private Content $content; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; /** @var string[] */ - private $translations; + private array $translations; public function __construct( Content $content, @@ -43,6 +41,9 @@ public function getVersionInfo(): VersionInfo return $this->versionInfo; } + /** + * @return string[] + */ public function getTranslations(): array { return $this->translations; diff --git a/src/contracts/Repository/Events/Content/RevealContentEvent.php b/src/contracts/Repository/Events/Content/RevealContentEvent.php index e53d4d00bf..19784d57fd 100644 --- a/src/contracts/Repository/Events/Content/RevealContentEvent.php +++ b/src/contracts/Repository/Events/Content/RevealContentEvent.php @@ -13,8 +13,7 @@ final class RevealContentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; public function __construct(ContentInfo $contentInfo) { diff --git a/src/contracts/Repository/Events/Content/UpdateContentEvent.php b/src/contracts/Repository/Events/Content/UpdateContentEvent.php index 004809882b..68ba907c76 100644 --- a/src/contracts/Repository/Events/Content/UpdateContentEvent.php +++ b/src/contracts/Repository/Events/Content/UpdateContentEvent.php @@ -15,17 +15,14 @@ final class UpdateContentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $content; + private Content $content; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo */ - private $versionInfo; + private VersionInfo $versionInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentUpdateStruct */ - private $contentUpdateStruct; + private ContentUpdateStruct $contentUpdateStruct; /** @var string[]|null */ - private $fieldIdentifiersToValidate; + private ?array $fieldIdentifiersToValidate; public function __construct( Content $content, diff --git a/src/contracts/Repository/Events/Content/UpdateContentMetadataEvent.php b/src/contracts/Repository/Events/Content/UpdateContentMetadataEvent.php index a48047e1fa..12f64c5ccc 100644 --- a/src/contracts/Repository/Events/Content/UpdateContentMetadataEvent.php +++ b/src/contracts/Repository/Events/Content/UpdateContentMetadataEvent.php @@ -15,14 +15,11 @@ final class UpdateContentMetadataEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Content */ - private $content; + private Content $content; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentMetadataUpdateStruct */ - private $contentMetadataUpdateStruct; + private ContentMetadataUpdateStruct $contentMetadataUpdateStruct; public function __construct( Content $content, diff --git a/src/contracts/Repository/Events/ContentType/AddFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/AddFieldDefinitionEvent.php index 6985436851..19e29678c0 100644 --- a/src/contracts/Repository/Events/ContentType/AddFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/AddFieldDefinitionEvent.php @@ -14,11 +14,9 @@ final class AddFieldDefinitionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinitionCreateStruct */ - private $fieldDefinitionCreateStruct; + private FieldDefinitionCreateStruct $fieldDefinitionCreateStruct; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/AssignContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/AssignContentTypeGroupEvent.php index dc73297169..cad1cf24e9 100644 --- a/src/contracts/Repository/Events/ContentType/AssignContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/AssignContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class AssignContentTypeGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct( ContentType $contentType, diff --git a/src/contracts/Repository/Events/ContentType/BeforeAddFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/BeforeAddFieldDefinitionEvent.php index 3d343a1450..5c2a9f9dec 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeAddFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeAddFieldDefinitionEvent.php @@ -14,11 +14,9 @@ final class BeforeAddFieldDefinitionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinitionCreateStruct */ - private $fieldDefinitionCreateStruct; + private FieldDefinitionCreateStruct $fieldDefinitionCreateStruct; public function __construct(ContentTypeDraft $contentTypeDraft, FieldDefinitionCreateStruct $fieldDefinitionCreateStruct) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeAssignContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/BeforeAssignContentTypeGroupEvent.php index c01983125e..9ef82d3087 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeAssignContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeAssignContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class BeforeAssignContentTypeGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct(ContentType $contentType, ContentTypeGroup $contentTypeGroup) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php index 2a706ed4a0..403c12cd4f 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeCopyContentTypeEvent.php @@ -15,14 +15,11 @@ final class BeforeCopyContentTypeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $creator; + private ?User $creator; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType|null */ - private $contentTypeCopy; + private ?ContentType $contentTypeCopy = null; public function __construct(ContentType $contentType, ?User $creator = null) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php index 0d6d39e9b4..d724924f89 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeDraftEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateContentTypeDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft|null */ - private $contentTypeDraft; + private ?ContentTypeDraft $contentTypeDraft = null; public function __construct(ContentType $contentType) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php index f4706b7389..24a9adb8e1 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeEvent.php @@ -15,15 +15,16 @@ final class BeforeCreateContentTypeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeCreateStruct */ - private $contentTypeCreateStruct; + private ContentTypeCreateStruct $contentTypeCreateStruct; - /** @var array */ - private $contentTypeGroups; + /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] */ + private array $contentTypeGroups; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft|null */ - private $contentTypeDraft; + private ?ContentTypeDraft $contentTypeDraft = null; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] $contentTypeGroups + */ public function __construct(ContentTypeCreateStruct $contentTypeCreateStruct, array $contentTypeGroups) { $this->contentTypeCreateStruct = $contentTypeCreateStruct; @@ -35,6 +36,9 @@ public function getContentTypeCreateStruct(): ContentTypeCreateStruct return $this->contentTypeCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] + */ public function getContentTypeGroups(): array { return $this->contentTypeGroups; diff --git a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php index d0ea49b65b..ef37f3a65a 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeCreateContentTypeGroupEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateContentTypeGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct */ - private $contentTypeGroupCreateStruct; + private ContentTypeGroupCreateStruct $contentTypeGroupCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup|null */ - private $contentTypeGroup; + private ?ContentTypeGroup $contentTypeGroup = null; public function __construct(ContentTypeGroupCreateStruct $contentTypeGroupCreateStruct) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeEvent.php index 8258fbaa1b..2974c108ff 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteContentTypeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; public function __construct(ContentType $contentType) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeGroupEvent.php index effb3812aa..108a8675f7 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeDeleteContentTypeGroupEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteContentTypeGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct(ContentTypeGroup $contentTypeGroup) { diff --git a/src/contracts/Repository/Events/ContentType/BeforePublishContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/BeforePublishContentTypeDraftEvent.php index 601c560f4b..c7f30e558a 100644 --- a/src/contracts/Repository/Events/ContentType/BeforePublishContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforePublishContentTypeDraftEvent.php @@ -13,8 +13,7 @@ final class BeforePublishContentTypeDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; public function __construct(ContentTypeDraft $contentTypeDraft) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php b/src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php index a85344d48e..e3492461bf 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeRemoveContentTypeTranslationEvent.php @@ -14,14 +14,11 @@ final class BeforeRemoveContentTypeTranslationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var string */ - private $languageCode; + private string $languageCode; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft|null */ - private $newContentTypeDraft; + private ?ContentTypeDraft $newContentTypeDraft = null; public function __construct(ContentTypeDraft $contentTypeDraft, string $languageCode) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeRemoveFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/BeforeRemoveFieldDefinitionEvent.php index 87d8288921..059ca83557 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeRemoveFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeRemoveFieldDefinitionEvent.php @@ -14,11 +14,9 @@ final class BeforeRemoveFieldDefinitionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition */ - private $fieldDefinition; + private FieldDefinition $fieldDefinition; public function __construct(ContentTypeDraft $contentTypeDraft, FieldDefinition $fieldDefinition) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeUnassignContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/BeforeUnassignContentTypeGroupEvent.php index ba712fccc5..289441c756 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeUnassignContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeUnassignContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class BeforeUnassignContentTypeGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct(ContentType $contentType, ContentTypeGroup $contentTypeGroup) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeDraftEvent.php index 27f66aeecd..c336f8a49c 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeDraftEvent.php @@ -14,11 +14,9 @@ final class BeforeUpdateContentTypeDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeUpdateStruct */ - private $contentTypeUpdateStruct; + private ContentTypeUpdateStruct $contentTypeUpdateStruct; public function __construct(ContentTypeDraft $contentTypeDraft, ContentTypeUpdateStruct $contentTypeUpdateStruct) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeGroupEvent.php index 085a83041b..3c51894ee9 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeUpdateContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class BeforeUpdateContentTypeGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct */ - private $contentTypeGroupUpdateStruct; + private ContentTypeGroupUpdateStruct $contentTypeGroupUpdateStruct; public function __construct(ContentTypeGroup $contentTypeGroup, ContentTypeGroupUpdateStruct $contentTypeGroupUpdateStruct) { diff --git a/src/contracts/Repository/Events/ContentType/BeforeUpdateFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/BeforeUpdateFieldDefinitionEvent.php index dc1b874ccd..32340c5878 100644 --- a/src/contracts/Repository/Events/ContentType/BeforeUpdateFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/BeforeUpdateFieldDefinitionEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateFieldDefinitionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition */ - private $fieldDefinition; + private FieldDefinition $fieldDefinition; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinitionUpdateStruct */ - private $fieldDefinitionUpdateStruct; + private FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php index a64a2be0ce..5e0f3ccdfc 100644 --- a/src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/CopyContentTypeEvent.php @@ -14,14 +14,11 @@ final class CopyContentTypeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentTypeCopy; + private ContentType $contentTypeCopy; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $creator; + private ?User $creator; public function __construct( ContentType $contentTypeCopy, diff --git a/src/contracts/Repository/Events/ContentType/CreateContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/CreateContentTypeDraftEvent.php index 4084795a14..386ea3db66 100644 --- a/src/contracts/Repository/Events/ContentType/CreateContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/CreateContentTypeDraftEvent.php @@ -14,11 +14,9 @@ final class CreateContentTypeDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php index bd39572c64..c332854b8c 100644 --- a/src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/CreateContentTypeEvent.php @@ -14,15 +14,16 @@ final class CreateContentTypeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeCreateStruct */ - private $contentTypeCreateStruct; + private ContentTypeCreateStruct $contentTypeCreateStruct; - /** @var array */ - private $contentTypeGroups; + /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] */ + private array $contentTypeGroups; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] $contentTypeGroups + */ public function __construct( ContentTypeDraft $contentTypeDraft, ContentTypeCreateStruct $contentTypeCreateStruct, @@ -43,6 +44,9 @@ public function getContentTypeCreateStruct(): ContentTypeCreateStruct return $this->contentTypeCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup[] + */ public function getContentTypeGroups(): array { return $this->contentTypeGroups; diff --git a/src/contracts/Repository/Events/ContentType/CreateContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/CreateContentTypeGroupEvent.php index 0d3d537974..0a8614834f 100644 --- a/src/contracts/Repository/Events/ContentType/CreateContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/CreateContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class CreateContentTypeGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct */ - private $contentTypeGroupCreateStruct; + private ContentTypeGroupCreateStruct $contentTypeGroupCreateStruct; public function __construct( ContentTypeGroup $contentTypeGroup, diff --git a/src/contracts/Repository/Events/ContentType/DeleteContentTypeEvent.php b/src/contracts/Repository/Events/ContentType/DeleteContentTypeEvent.php index e3fc0a907d..2d1e7af824 100644 --- a/src/contracts/Repository/Events/ContentType/DeleteContentTypeEvent.php +++ b/src/contracts/Repository/Events/ContentType/DeleteContentTypeEvent.php @@ -13,8 +13,7 @@ final class DeleteContentTypeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; public function __construct(ContentType $contentType) { diff --git a/src/contracts/Repository/Events/ContentType/DeleteContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/DeleteContentTypeGroupEvent.php index 4941f4c66b..d64db21eb2 100644 --- a/src/contracts/Repository/Events/ContentType/DeleteContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/DeleteContentTypeGroupEvent.php @@ -13,8 +13,7 @@ final class DeleteContentTypeGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct(ContentTypeGroup $contentTypeGroup) { diff --git a/src/contracts/Repository/Events/ContentType/PublishContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/PublishContentTypeDraftEvent.php index e19b5b0f6c..449b63f575 100644 --- a/src/contracts/Repository/Events/ContentType/PublishContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/PublishContentTypeDraftEvent.php @@ -13,8 +13,7 @@ final class PublishContentTypeDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; public function __construct(ContentTypeDraft $contentTypeDraft) { diff --git a/src/contracts/Repository/Events/ContentType/RemoveContentTypeTranslationEvent.php b/src/contracts/Repository/Events/ContentType/RemoveContentTypeTranslationEvent.php index a6d78df42d..a27d5b2af8 100644 --- a/src/contracts/Repository/Events/ContentType/RemoveContentTypeTranslationEvent.php +++ b/src/contracts/Repository/Events/ContentType/RemoveContentTypeTranslationEvent.php @@ -13,14 +13,11 @@ final class RemoveContentTypeTranslationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $newContentTypeDraft; + private ContentTypeDraft $newContentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var string */ - private $languageCode; + private string $languageCode; public function __construct( ContentTypeDraft $newContentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/RemoveFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/RemoveFieldDefinitionEvent.php index 43196645d8..c89e039e2d 100644 --- a/src/contracts/Repository/Events/ContentType/RemoveFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/RemoveFieldDefinitionEvent.php @@ -14,11 +14,9 @@ final class RemoveFieldDefinitionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition */ - private $fieldDefinition; + private FieldDefinition $fieldDefinition; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/UnassignContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/UnassignContentTypeGroupEvent.php index 9adc7dd415..3b110cb95b 100644 --- a/src/contracts/Repository/Events/ContentType/UnassignContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/UnassignContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class UnassignContentTypeGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType */ - private $contentType; + private ContentType $contentType; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; public function __construct( ContentType $contentType, diff --git a/src/contracts/Repository/Events/ContentType/UpdateContentTypeDraftEvent.php b/src/contracts/Repository/Events/ContentType/UpdateContentTypeDraftEvent.php index 00d8e74246..0fe72ef50b 100644 --- a/src/contracts/Repository/Events/ContentType/UpdateContentTypeDraftEvent.php +++ b/src/contracts/Repository/Events/ContentType/UpdateContentTypeDraftEvent.php @@ -14,11 +14,9 @@ final class UpdateContentTypeDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeUpdateStruct */ - private $contentTypeUpdateStruct; + private ContentTypeUpdateStruct $contentTypeUpdateStruct; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/ContentType/UpdateContentTypeGroupEvent.php b/src/contracts/Repository/Events/ContentType/UpdateContentTypeGroupEvent.php index 65493292c5..27c9a047d7 100644 --- a/src/contracts/Repository/Events/ContentType/UpdateContentTypeGroupEvent.php +++ b/src/contracts/Repository/Events/ContentType/UpdateContentTypeGroupEvent.php @@ -14,11 +14,9 @@ final class UpdateContentTypeGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup */ - private $contentTypeGroup; + private ContentTypeGroup $contentTypeGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupUpdateStruct */ - private $contentTypeGroupUpdateStruct; + private ContentTypeGroupUpdateStruct $contentTypeGroupUpdateStruct; public function __construct( ContentTypeGroup $contentTypeGroup, diff --git a/src/contracts/Repository/Events/ContentType/UpdateFieldDefinitionEvent.php b/src/contracts/Repository/Events/ContentType/UpdateFieldDefinitionEvent.php index 0368061b75..12ce634271 100644 --- a/src/contracts/Repository/Events/ContentType/UpdateFieldDefinitionEvent.php +++ b/src/contracts/Repository/Events/ContentType/UpdateFieldDefinitionEvent.php @@ -15,14 +15,11 @@ final class UpdateFieldDefinitionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft */ - private $contentTypeDraft; + private ContentTypeDraft $contentTypeDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition */ - private $fieldDefinition; + private FieldDefinition $fieldDefinition; - /** @var \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinitionUpdateStruct */ - private $fieldDefinitionUpdateStruct; + private FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct; public function __construct( ContentTypeDraft $contentTypeDraft, diff --git a/src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php b/src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php index 04291b8a4a..fb9c35db10 100644 --- a/src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/BeforeCreateLanguageEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateLanguageEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LanguageCreateStruct */ - private $languageCreateStruct; + private LanguageCreateStruct $languageCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $language; + private ?Language $language = null; public function __construct(LanguageCreateStruct $languageCreateStruct) { diff --git a/src/contracts/Repository/Events/Language/BeforeDeleteLanguageEvent.php b/src/contracts/Repository/Events/Language/BeforeDeleteLanguageEvent.php index cbbdb0e44d..34afe9ed56 100644 --- a/src/contracts/Repository/Events/Language/BeforeDeleteLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/BeforeDeleteLanguageEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteLanguageEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; public function __construct(Language $language) { diff --git a/src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php b/src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php index 58d35fe568..ed0341e024 100644 --- a/src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/BeforeDisableLanguageEvent.php @@ -14,11 +14,9 @@ final class BeforeDisableLanguageEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $disabledLanguage; + private ?Language $disabledLanguage = null; public function __construct(Language $language) { diff --git a/src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php b/src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php index cef3f53404..d3c70e399f 100644 --- a/src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/BeforeEnableLanguageEvent.php @@ -14,11 +14,9 @@ final class BeforeEnableLanguageEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $enabledLanguage; + private ?Language $enabledLanguage = null; public function __construct(Language $language) { diff --git a/src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php b/src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php index 550e53609f..9fdfc31d14 100644 --- a/src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php +++ b/src/contracts/Repository/Events/Language/BeforeUpdateLanguageNameEvent.php @@ -14,14 +14,11 @@ final class BeforeUpdateLanguageNameEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; - /** @var string */ - private $newName; + private string $newName; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language|null */ - private $updatedLanguage; + private ?Language $updatedLanguage = null; public function __construct(Language $language, string $newName) { diff --git a/src/contracts/Repository/Events/Language/CreateLanguageEvent.php b/src/contracts/Repository/Events/Language/CreateLanguageEvent.php index fb1c6efd96..0c242cc972 100644 --- a/src/contracts/Repository/Events/Language/CreateLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/CreateLanguageEvent.php @@ -14,11 +14,9 @@ final class CreateLanguageEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LanguageCreateStruct */ - private $languageCreateStruct; + private LanguageCreateStruct $languageCreateStruct; public function __construct( Language $language, diff --git a/src/contracts/Repository/Events/Language/DeleteLanguageEvent.php b/src/contracts/Repository/Events/Language/DeleteLanguageEvent.php index 5186d48cbd..f2a2b228d7 100644 --- a/src/contracts/Repository/Events/Language/DeleteLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/DeleteLanguageEvent.php @@ -13,8 +13,7 @@ final class DeleteLanguageEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; public function __construct(Language $language) { diff --git a/src/contracts/Repository/Events/Language/DisableLanguageEvent.php b/src/contracts/Repository/Events/Language/DisableLanguageEvent.php index 0da88b89ae..4774d6e798 100644 --- a/src/contracts/Repository/Events/Language/DisableLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/DisableLanguageEvent.php @@ -13,11 +13,9 @@ final class DisableLanguageEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $disabledLanguage; + private Language $disabledLanguage; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; public function __construct( Language $disabledLanguage, diff --git a/src/contracts/Repository/Events/Language/EnableLanguageEvent.php b/src/contracts/Repository/Events/Language/EnableLanguageEvent.php index 3fa5468948..7dbed14a5b 100644 --- a/src/contracts/Repository/Events/Language/EnableLanguageEvent.php +++ b/src/contracts/Repository/Events/Language/EnableLanguageEvent.php @@ -13,11 +13,9 @@ final class EnableLanguageEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $enabledLanguage; + private Language $enabledLanguage; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; public function __construct( Language $enabledLanguage, diff --git a/src/contracts/Repository/Events/Language/UpdateLanguageNameEvent.php b/src/contracts/Repository/Events/Language/UpdateLanguageNameEvent.php index 0e0d02adbb..78a6e38752 100644 --- a/src/contracts/Repository/Events/Language/UpdateLanguageNameEvent.php +++ b/src/contracts/Repository/Events/Language/UpdateLanguageNameEvent.php @@ -13,14 +13,11 @@ final class UpdateLanguageNameEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $updatedLanguage; + private Language $updatedLanguage; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language */ - private $language; + private Language $language; - /** @var string */ - private $newName; + private string $newName; public function __construct( Language $updatedLanguage, diff --git a/src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php b/src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php index dc04dc4b5e..7aeb4478ad 100644 --- a/src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeCopySubtreeEvent.php @@ -14,14 +14,11 @@ final class BeforeCopySubtreeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $subtree; + private Location $subtree; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $targetParentLocation; + private Location $targetParentLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $location; + private ?Location $location = null; public function __construct(Location $subtree, Location $targetParentLocation) { diff --git a/src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php index 9b47d301c9..4840474ac5 100644 --- a/src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeCreateLocationEvent.php @@ -16,14 +16,11 @@ final class BeforeCreateLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct */ - private $locationCreateStruct; + private LocationCreateStruct $locationCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $location; + private ?Location $location = null; public function __construct(ContentInfo $contentInfo, LocationCreateStruct $locationCreateStruct) { diff --git a/src/contracts/Repository/Events/Location/BeforeDeleteLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeDeleteLocationEvent.php index 316c903d37..a5a40aa658 100644 --- a/src/contracts/Repository/Events/Location/BeforeDeleteLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeDeleteLocationEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php index d108669424..fdf6b8d9b1 100644 --- a/src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeHideLocationEvent.php @@ -14,11 +14,9 @@ final class BeforeHideLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $hiddenLocation; + private ?Location $hiddenLocation = null; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Location/BeforeMoveSubtreeEvent.php b/src/contracts/Repository/Events/Location/BeforeMoveSubtreeEvent.php index 2dfa9dc116..b3a2c283a9 100644 --- a/src/contracts/Repository/Events/Location/BeforeMoveSubtreeEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeMoveSubtreeEvent.php @@ -13,11 +13,9 @@ final class BeforeMoveSubtreeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $newParentLocation; + private Location $newParentLocation; public function __construct(Location $location, Location $newParentLocation) { diff --git a/src/contracts/Repository/Events/Location/BeforeSwapLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeSwapLocationEvent.php index e84e903a31..3b4119f6cc 100644 --- a/src/contracts/Repository/Events/Location/BeforeSwapLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeSwapLocationEvent.php @@ -13,11 +13,9 @@ final class BeforeSwapLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location1; + private Location $location1; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location2; + private Location $location2; public function __construct(Location $location1, Location $location2) { diff --git a/src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php index 081eb4889a..497188178a 100644 --- a/src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeUnhideLocationEvent.php @@ -14,11 +14,9 @@ final class BeforeUnhideLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $revealedLocation; + private ?Location $revealedLocation = null; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php b/src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php index 455d84b4ab..c4add31f7d 100644 --- a/src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php +++ b/src/contracts/Repository/Events/Location/BeforeUpdateLocationEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationUpdateStruct */ - private $locationUpdateStruct; + private LocationUpdateStruct $locationUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $updatedLocation; + private ?Location $updatedLocation = null; public function __construct(Location $location, LocationUpdateStruct $locationUpdateStruct) { diff --git a/src/contracts/Repository/Events/Location/CopySubtreeEvent.php b/src/contracts/Repository/Events/Location/CopySubtreeEvent.php index e52bb3c734..700a09bde4 100644 --- a/src/contracts/Repository/Events/Location/CopySubtreeEvent.php +++ b/src/contracts/Repository/Events/Location/CopySubtreeEvent.php @@ -13,14 +13,11 @@ final class CopySubtreeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $subtree; + private Location $subtree; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $targetParentLocation; + private Location $targetParentLocation; public function __construct( Location $location, diff --git a/src/contracts/Repository/Events/Location/CreateLocationEvent.php b/src/contracts/Repository/Events/Location/CreateLocationEvent.php index fff974a204..ce2dd1f705 100644 --- a/src/contracts/Repository/Events/Location/CreateLocationEvent.php +++ b/src/contracts/Repository/Events/Location/CreateLocationEvent.php @@ -15,14 +15,11 @@ final class CreateLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationCreateStruct */ - private $locationCreateStruct; + private LocationCreateStruct $locationCreateStruct; public function __construct( Location $location, diff --git a/src/contracts/Repository/Events/Location/DeleteLocationEvent.php b/src/contracts/Repository/Events/Location/DeleteLocationEvent.php index eae70e86ef..5d8d5c23bf 100644 --- a/src/contracts/Repository/Events/Location/DeleteLocationEvent.php +++ b/src/contracts/Repository/Events/Location/DeleteLocationEvent.php @@ -13,8 +13,7 @@ final class DeleteLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Location/HideLocationEvent.php b/src/contracts/Repository/Events/Location/HideLocationEvent.php index 7518436127..e6dae2e93d 100644 --- a/src/contracts/Repository/Events/Location/HideLocationEvent.php +++ b/src/contracts/Repository/Events/Location/HideLocationEvent.php @@ -13,11 +13,9 @@ final class HideLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $hiddenLocation; + private Location $hiddenLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct( Location $hiddenLocation, diff --git a/src/contracts/Repository/Events/Location/MoveSubtreeEvent.php b/src/contracts/Repository/Events/Location/MoveSubtreeEvent.php index 02a668d525..d221f97650 100644 --- a/src/contracts/Repository/Events/Location/MoveSubtreeEvent.php +++ b/src/contracts/Repository/Events/Location/MoveSubtreeEvent.php @@ -13,11 +13,9 @@ final class MoveSubtreeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $newParentLocation; + private Location $newParentLocation; public function __construct( Location $location, diff --git a/src/contracts/Repository/Events/Location/SwapLocationEvent.php b/src/contracts/Repository/Events/Location/SwapLocationEvent.php index c60df93659..48976902ae 100644 --- a/src/contracts/Repository/Events/Location/SwapLocationEvent.php +++ b/src/contracts/Repository/Events/Location/SwapLocationEvent.php @@ -13,11 +13,9 @@ final class SwapLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location1; + private Location $location1; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location2; + private Location $location2; public function __construct( Location $location1, diff --git a/src/contracts/Repository/Events/Location/UnhideLocationEvent.php b/src/contracts/Repository/Events/Location/UnhideLocationEvent.php index 37b511c41f..b27d959cdd 100644 --- a/src/contracts/Repository/Events/Location/UnhideLocationEvent.php +++ b/src/contracts/Repository/Events/Location/UnhideLocationEvent.php @@ -13,11 +13,9 @@ final class UnhideLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $revealedLocation; + private Location $revealedLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct( Location $revealedLocation, diff --git a/src/contracts/Repository/Events/Location/UpdateLocationEvent.php b/src/contracts/Repository/Events/Location/UpdateLocationEvent.php index 642073f96c..df6dcef0fd 100644 --- a/src/contracts/Repository/Events/Location/UpdateLocationEvent.php +++ b/src/contracts/Repository/Events/Location/UpdateLocationEvent.php @@ -14,14 +14,11 @@ final class UpdateLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $updatedLocation; + private Location $updatedLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\LocationUpdateStruct */ - private $locationUpdateStruct; + private LocationUpdateStruct $locationUpdateStruct; public function __construct( Location $updatedLocation, diff --git a/src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php b/src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php index 1b3827c413..5d6fcff99b 100644 --- a/src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php +++ b/src/contracts/Repository/Events/Notification/BeforeCreateNotificationEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateNotificationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\CreateStruct */ - private $createStruct; + private CreateStruct $createStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification|null */ - private $notification; + private ?Notification $notification = null; public function __construct(CreateStruct $createStruct) { diff --git a/src/contracts/Repository/Events/Notification/BeforeDeleteNotificationEvent.php b/src/contracts/Repository/Events/Notification/BeforeDeleteNotificationEvent.php index bec89d4137..a2d22f4f80 100644 --- a/src/contracts/Repository/Events/Notification/BeforeDeleteNotificationEvent.php +++ b/src/contracts/Repository/Events/Notification/BeforeDeleteNotificationEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteNotificationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification */ - private $notification; + private Notification $notification; public function __construct(Notification $notification) { diff --git a/src/contracts/Repository/Events/Notification/BeforeMarkNotificationAsReadEvent.php b/src/contracts/Repository/Events/Notification/BeforeMarkNotificationAsReadEvent.php index 98cd8baf1f..2641376c14 100644 --- a/src/contracts/Repository/Events/Notification/BeforeMarkNotificationAsReadEvent.php +++ b/src/contracts/Repository/Events/Notification/BeforeMarkNotificationAsReadEvent.php @@ -13,8 +13,7 @@ final class BeforeMarkNotificationAsReadEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification */ - private $notification; + private Notification $notification; public function __construct(Notification $notification) { diff --git a/src/contracts/Repository/Events/Notification/CreateNotificationEvent.php b/src/contracts/Repository/Events/Notification/CreateNotificationEvent.php index a5c0294e04..46c1aa4a7f 100644 --- a/src/contracts/Repository/Events/Notification/CreateNotificationEvent.php +++ b/src/contracts/Repository/Events/Notification/CreateNotificationEvent.php @@ -14,11 +14,9 @@ final class CreateNotificationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification */ - private $notification; + private Notification $notification; - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\CreateStruct */ - private $createStruct; + private CreateStruct $createStruct; public function __construct( Notification $notification, diff --git a/src/contracts/Repository/Events/Notification/DeleteNotificationEvent.php b/src/contracts/Repository/Events/Notification/DeleteNotificationEvent.php index 3c300612d7..63ca728092 100644 --- a/src/contracts/Repository/Events/Notification/DeleteNotificationEvent.php +++ b/src/contracts/Repository/Events/Notification/DeleteNotificationEvent.php @@ -13,8 +13,7 @@ final class DeleteNotificationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification */ - private $notification; + private Notification $notification; public function __construct(Notification $notification) { diff --git a/src/contracts/Repository/Events/Notification/MarkNotificationAsReadEvent.php b/src/contracts/Repository/Events/Notification/MarkNotificationAsReadEvent.php index 1c45771144..0f74cdc60d 100644 --- a/src/contracts/Repository/Events/Notification/MarkNotificationAsReadEvent.php +++ b/src/contracts/Repository/Events/Notification/MarkNotificationAsReadEvent.php @@ -13,8 +13,7 @@ final class MarkNotificationAsReadEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Notification\Notification */ - private $notification; + private Notification $notification; public function __construct(Notification $notification) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php index d0393f2163..258e67186d 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateEvent.php @@ -16,14 +16,11 @@ final class BeforeCreateObjectStateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateCreateStruct */ - private $objectStateCreateStruct; + private ObjectStateCreateStruct $objectStateCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState|null */ - private $objectState; + private ?ObjectState $objectState = null; public function __construct(ObjectStateGroup $objectStateGroup, ObjectStateCreateStruct $objectStateCreateStruct) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php index 03965101ef..4efa0e7ded 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeCreateObjectStateGroupEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateObjectStateGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroupCreateStruct */ - private $objectStateGroupCreateStruct; + private ObjectStateGroupCreateStruct $objectStateGroupCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup|null */ - private $objectStateGroup; + private ?ObjectStateGroup $objectStateGroup = null; public function __construct(ObjectStateGroupCreateStruct $objectStateGroupCreateStruct) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateEvent.php index 719a8e60da..48fe94f3a2 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteObjectStateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; public function __construct(ObjectState $objectState) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateGroupEvent.php index 25486cefa9..c24fae92f7 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeDeleteObjectStateGroupEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteObjectStateGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; public function __construct(ObjectStateGroup $objectStateGroup) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeSetContentStateEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeSetContentStateEvent.php index 42bc078d59..505a130ccc 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeSetContentStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeSetContentStateEvent.php @@ -15,14 +15,11 @@ final class BeforeSetContentStateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; public function __construct(ContentInfo $contentInfo, ObjectStateGroup $objectStateGroup, ObjectState $objectState) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php index d3c9cd3bad..1f21ed46b2 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeSetPriorityOfObjectStateEvent.php @@ -13,12 +13,11 @@ final class BeforeSetPriorityOfObjectStateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; - private $priority; + private int $priority; - public function __construct(ObjectState $objectState, $priority) + public function __construct(ObjectState $objectState, int $priority) { $this->objectState = $objectState; $this->priority = $priority; @@ -29,7 +28,7 @@ public function getObjectState(): ObjectState return $this->objectState; } - public function getPriority() + public function getPriority(): int { return $this->priority; } diff --git a/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php index 3df199026c..248e75deb2 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateObjectStateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateUpdateStruct */ - private $objectStateUpdateStruct; + private ObjectStateUpdateStruct $objectStateUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState|null */ - private $updatedObjectState; + private ?ObjectState $updatedObjectState = null; public function __construct(ObjectState $objectState, ObjectStateUpdateStruct $objectStateUpdateStruct) { diff --git a/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php index f2411eac80..2d0835c218 100644 --- a/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/BeforeUpdateObjectStateGroupEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateObjectStateGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct */ - private $objectStateGroupUpdateStruct; + private ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup|null */ - private $updatedObjectStateGroup; + private ?ObjectStateGroup $updatedObjectStateGroup = null; public function __construct(ObjectStateGroup $objectStateGroup, ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct) { diff --git a/src/contracts/Repository/Events/ObjectState/CreateObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/CreateObjectStateEvent.php index 80c9087190..6236675313 100644 --- a/src/contracts/Repository/Events/ObjectState/CreateObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/CreateObjectStateEvent.php @@ -15,14 +15,11 @@ final class CreateObjectStateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateCreateStruct */ - private $objectStateCreateStruct; + private ObjectStateCreateStruct $objectStateCreateStruct; public function __construct( ObjectState $objectState, diff --git a/src/contracts/Repository/Events/ObjectState/CreateObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/CreateObjectStateGroupEvent.php index e90555a34b..b9815b750b 100644 --- a/src/contracts/Repository/Events/ObjectState/CreateObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/CreateObjectStateGroupEvent.php @@ -14,11 +14,9 @@ final class CreateObjectStateGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroupCreateStruct */ - private $objectStateGroupCreateStruct; + private ObjectStateGroupCreateStruct $objectStateGroupCreateStruct; public function __construct( ObjectStateGroup $objectStateGroup, diff --git a/src/contracts/Repository/Events/ObjectState/DeleteObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/DeleteObjectStateEvent.php index 469bdfa662..9f0ecaed6a 100644 --- a/src/contracts/Repository/Events/ObjectState/DeleteObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/DeleteObjectStateEvent.php @@ -13,8 +13,7 @@ final class DeleteObjectStateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; public function __construct(ObjectState $objectState) { diff --git a/src/contracts/Repository/Events/ObjectState/DeleteObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/DeleteObjectStateGroupEvent.php index 02b8994fdc..fc68106df3 100644 --- a/src/contracts/Repository/Events/ObjectState/DeleteObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/DeleteObjectStateGroupEvent.php @@ -13,8 +13,7 @@ final class DeleteObjectStateGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; public function __construct(ObjectStateGroup $objectStateGroup) { diff --git a/src/contracts/Repository/Events/ObjectState/SetContentStateEvent.php b/src/contracts/Repository/Events/ObjectState/SetContentStateEvent.php index f30e5dffc7..42c41ae19a 100644 --- a/src/contracts/Repository/Events/ObjectState/SetContentStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/SetContentStateEvent.php @@ -15,14 +15,11 @@ final class SetContentStateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; public function __construct( ContentInfo $contentInfo, diff --git a/src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php index 78499fbee3..aec79cf1d1 100644 --- a/src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/SetPriorityOfObjectStateEvent.php @@ -13,14 +13,13 @@ final class SetPriorityOfObjectStateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; - private $priority; + private int $priority; public function __construct( ObjectState $objectState, - $priority + int $priority ) { $this->objectState = $objectState; $this->priority = $priority; @@ -31,7 +30,7 @@ public function getObjectState(): ObjectState return $this->objectState; } - public function getPriority() + public function getPriority(): int { return $this->priority; } diff --git a/src/contracts/Repository/Events/ObjectState/UpdateObjectStateEvent.php b/src/contracts/Repository/Events/ObjectState/UpdateObjectStateEvent.php index d327ff383d..a2134be4ba 100644 --- a/src/contracts/Repository/Events/ObjectState/UpdateObjectStateEvent.php +++ b/src/contracts/Repository/Events/ObjectState/UpdateObjectStateEvent.php @@ -14,14 +14,11 @@ final class UpdateObjectStateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $updatedObjectState; + private ObjectState $updatedObjectState; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState */ - private $objectState; + private ObjectState $objectState; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateUpdateStruct */ - private $objectStateUpdateStruct; + private ObjectStateUpdateStruct $objectStateUpdateStruct; public function __construct( ObjectState $updatedObjectState, diff --git a/src/contracts/Repository/Events/ObjectState/UpdateObjectStateGroupEvent.php b/src/contracts/Repository/Events/ObjectState/UpdateObjectStateGroupEvent.php index 46ae8b3eca..cbfa4553e6 100644 --- a/src/contracts/Repository/Events/ObjectState/UpdateObjectStateGroupEvent.php +++ b/src/contracts/Repository/Events/ObjectState/UpdateObjectStateGroupEvent.php @@ -14,14 +14,11 @@ final class UpdateObjectStateGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $updatedObjectStateGroup; + private ObjectStateGroup $updatedObjectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup */ - private $objectStateGroup; + private ObjectStateGroup $objectStateGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct */ - private $objectStateGroupUpdateStruct; + private ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct; public function __construct( ObjectStateGroup $updatedObjectStateGroup, diff --git a/src/contracts/Repository/Events/Role/AddPolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/AddPolicyByRoleDraftEvent.php index 24af78f65e..df94d9ea62 100644 --- a/src/contracts/Repository/Events/Role/AddPolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/AddPolicyByRoleDraftEvent.php @@ -14,13 +14,11 @@ final class AddPolicyByRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyCreateStruct */ - private $policyCreateStruct; + private PolicyCreateStruct $policyCreateStruct; - private $updatedRoleDraft; + private RoleDraft $updatedRoleDraft; public function __construct( RoleDraft $updatedRoleDraft, diff --git a/src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php b/src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php index bfbb85861c..07610df0ff 100644 --- a/src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php +++ b/src/contracts/Repository/Events/Role/AssignRoleToUserEvent.php @@ -15,14 +15,11 @@ final class AssignRoleToUserEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Limitation\RoleLimitation */ - private $roleLimitation; + private ?RoleLimitation $roleLimitation; public function __construct( Role $role, diff --git a/src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php b/src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php index 558caf61e3..cd6573cb1f 100644 --- a/src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php +++ b/src/contracts/Repository/Events/Role/AssignRoleToUserGroupEvent.php @@ -15,14 +15,11 @@ final class AssignRoleToUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Limitation\RoleLimitation */ - private $roleLimitation; + private ?RoleLimitation $roleLimitation; public function __construct( Role $role, diff --git a/src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php index 2b2cf734d2..22d2423a0c 100644 --- a/src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeAddPolicyByRoleDraftEvent.php @@ -15,14 +15,11 @@ final class BeforeAddPolicyByRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyCreateStruct */ - private $policyCreateStruct; + private PolicyCreateStruct $policyCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft|null */ - private $updatedRoleDraft; + private ?RoleDraft $updatedRoleDraft = null; public function __construct(RoleDraft $roleDraft, PolicyCreateStruct $policyCreateStruct) { diff --git a/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php b/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php index 79e845cf98..eb204bd545 100644 --- a/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserEvent.php @@ -15,14 +15,11 @@ final class BeforeAssignRoleToUserEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Limitation\RoleLimitation */ - private $roleLimitation; + private ?RoleLimitation $roleLimitation; public function __construct(Role $role, User $user, ?RoleLimitation $roleLimitation = null) { diff --git a/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php b/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php index 6e3468cd96..f100d0789c 100644 --- a/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeAssignRoleToUserGroupEvent.php @@ -15,14 +15,11 @@ final class BeforeAssignRoleToUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Limitation\RoleLimitation */ - private $roleLimitation; + private ?RoleLimitation $roleLimitation; public function __construct(Role $role, UserGroup $userGroup, ?RoleLimitation $roleLimitation = null) { diff --git a/src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php b/src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php index 88112c8770..d527e709c0 100644 --- a/src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeCopyRoleEvent.php @@ -15,14 +15,11 @@ final class BeforeCopyRoleEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleCopyStruct */ - private $roleCopyStruct; + private RoleCopyStruct $roleCopyStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role|null */ - private $copiedRole; + private ?Role $copiedRole = null; public function __construct(Role $role, RoleCopyStruct $roleCopyStruct) { diff --git a/src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php index 831b32ba30..a47457055c 100644 --- a/src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeCreateRoleDraftEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft|null */ - private $roleDraft; + private ?RoleDraft $roleDraft = null; public function __construct(Role $role) { diff --git a/src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php b/src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php index 76953db37b..1a8168e949 100644 --- a/src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeCreateRoleEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateRoleEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct */ - private $roleCreateStruct; + private RoleCreateStruct $roleCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft|null */ - private $roleDraft; + private ?RoleDraft $roleDraft = null; public function __construct(RoleCreateStruct $roleCreateStruct) { diff --git a/src/contracts/Repository/Events/Role/BeforeDeletePolicyEvent.php b/src/contracts/Repository/Events/Role/BeforeDeletePolicyEvent.php index 3e4e8089f4..184db86875 100644 --- a/src/contracts/Repository/Events/Role/BeforeDeletePolicyEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeDeletePolicyEvent.php @@ -13,8 +13,7 @@ final class BeforeDeletePolicyEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Policy */ - private $policy; + private Policy $policy; public function __construct(Policy $policy) { diff --git a/src/contracts/Repository/Events/Role/BeforeDeleteRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeDeleteRoleDraftEvent.php index 9e979aa701..aac19bc60f 100644 --- a/src/contracts/Repository/Events/Role/BeforeDeleteRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeDeleteRoleDraftEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct(RoleDraft $roleDraft) { diff --git a/src/contracts/Repository/Events/Role/BeforeDeleteRoleEvent.php b/src/contracts/Repository/Events/Role/BeforeDeleteRoleEvent.php index 4509d9a224..c5e3d3a90e 100644 --- a/src/contracts/Repository/Events/Role/BeforeDeleteRoleEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeDeleteRoleEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteRoleEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; public function __construct(Role $role) { diff --git a/src/contracts/Repository/Events/Role/BeforePublishRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforePublishRoleDraftEvent.php index 9c497b9314..183f4a6eca 100644 --- a/src/contracts/Repository/Events/Role/BeforePublishRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforePublishRoleDraftEvent.php @@ -13,8 +13,7 @@ final class BeforePublishRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct(RoleDraft $roleDraft) { diff --git a/src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php index 2c1cb6dbbc..b5eba1e2f2 100644 --- a/src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeRemovePolicyByRoleDraftEvent.php @@ -15,14 +15,11 @@ final class BeforeRemovePolicyByRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft */ - private $policyDraft; + private PolicyDraft $policyDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft|null */ - private $updatedRoleDraft; + private ?RoleDraft $updatedRoleDraft = null; public function __construct(RoleDraft $roleDraft, PolicyDraft $policyDraft) { diff --git a/src/contracts/Repository/Events/Role/BeforeRemoveRoleAssignmentEvent.php b/src/contracts/Repository/Events/Role/BeforeRemoveRoleAssignmentEvent.php index 36e4ccc8db..de1cf9f245 100644 --- a/src/contracts/Repository/Events/Role/BeforeRemoveRoleAssignmentEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeRemoveRoleAssignmentEvent.php @@ -13,8 +13,7 @@ final class BeforeRemoveRoleAssignmentEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleAssignment */ - private $roleAssignment; + private RoleAssignment $roleAssignment; public function __construct(RoleAssignment $roleAssignment) { diff --git a/src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php index f1a56118d7..379ea5dd09 100644 --- a/src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeUpdatePolicyByRoleDraftEvent.php @@ -16,17 +16,13 @@ final class BeforeUpdatePolicyByRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft */ - private $policy; + private PolicyDraft $policy; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyUpdateStruct */ - private $policyUpdateStruct; + private PolicyUpdateStruct $policyUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft|null */ - private $updatedPolicyDraft; + private ?PolicyDraft $updatedPolicyDraft = null; public function __construct(RoleDraft $roleDraft, PolicyDraft $policy, PolicyUpdateStruct $policyUpdateStruct) { diff --git a/src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php b/src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php index f9fad19f97..5f1558e33f 100644 --- a/src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/BeforeUpdateRoleDraftEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateRoleDraftEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct */ - private $roleUpdateStruct; + private RoleUpdateStruct $roleUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft|null */ - private $updatedRoleDraft; + private ?RoleDraft $updatedRoleDraft = null; public function __construct(RoleDraft $roleDraft, RoleUpdateStruct $roleUpdateStruct) { diff --git a/src/contracts/Repository/Events/Role/CopyRoleEvent.php b/src/contracts/Repository/Events/Role/CopyRoleEvent.php index 402bead5e3..46c03c8147 100644 --- a/src/contracts/Repository/Events/Role/CopyRoleEvent.php +++ b/src/contracts/Repository/Events/Role/CopyRoleEvent.php @@ -14,14 +14,11 @@ final class CopyRoleEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $copiedRole; + private Role $copiedRole; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleCopyStruct */ - private $roleCopyStruct; + private RoleCopyStruct $roleCopyStruct; public function __construct( Role $copiedRole, diff --git a/src/contracts/Repository/Events/Role/CreateRoleDraftEvent.php b/src/contracts/Repository/Events/Role/CreateRoleDraftEvent.php index 1a6877641a..48186bf8d2 100644 --- a/src/contracts/Repository/Events/Role/CreateRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/CreateRoleDraftEvent.php @@ -14,11 +14,9 @@ final class CreateRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct( RoleDraft $roleDraft, diff --git a/src/contracts/Repository/Events/Role/CreateRoleEvent.php b/src/contracts/Repository/Events/Role/CreateRoleEvent.php index 4a806578a2..4fcdc2f1bb 100644 --- a/src/contracts/Repository/Events/Role/CreateRoleEvent.php +++ b/src/contracts/Repository/Events/Role/CreateRoleEvent.php @@ -14,11 +14,9 @@ final class CreateRoleEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleCreateStruct */ - private $roleCreateStruct; + private RoleCreateStruct $roleCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct( RoleDraft $roleDraft, diff --git a/src/contracts/Repository/Events/Role/DeletePolicyEvent.php b/src/contracts/Repository/Events/Role/DeletePolicyEvent.php index b1511f288c..097823cd35 100644 --- a/src/contracts/Repository/Events/Role/DeletePolicyEvent.php +++ b/src/contracts/Repository/Events/Role/DeletePolicyEvent.php @@ -13,8 +13,7 @@ final class DeletePolicyEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Policy */ - private $policy; + private Policy $policy; public function __construct( Policy $policy diff --git a/src/contracts/Repository/Events/Role/DeleteRoleDraftEvent.php b/src/contracts/Repository/Events/Role/DeleteRoleDraftEvent.php index f3b5d420bc..52cc28b401 100644 --- a/src/contracts/Repository/Events/Role/DeleteRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/DeleteRoleDraftEvent.php @@ -13,8 +13,7 @@ final class DeleteRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct( RoleDraft $roleDraft diff --git a/src/contracts/Repository/Events/Role/DeleteRoleEvent.php b/src/contracts/Repository/Events/Role/DeleteRoleEvent.php index 153f0c862a..0278ab2a14 100644 --- a/src/contracts/Repository/Events/Role/DeleteRoleEvent.php +++ b/src/contracts/Repository/Events/Role/DeleteRoleEvent.php @@ -13,8 +13,7 @@ final class DeleteRoleEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\Role */ - private $role; + private Role $role; public function __construct( Role $role diff --git a/src/contracts/Repository/Events/Role/PublishRoleDraftEvent.php b/src/contracts/Repository/Events/Role/PublishRoleDraftEvent.php index 32388b589f..808e683f5f 100644 --- a/src/contracts/Repository/Events/Role/PublishRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/PublishRoleDraftEvent.php @@ -13,8 +13,7 @@ final class PublishRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; public function __construct( RoleDraft $roleDraft diff --git a/src/contracts/Repository/Events/Role/RemovePolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/RemovePolicyByRoleDraftEvent.php index 07e713e060..ac3c407896 100644 --- a/src/contracts/Repository/Events/Role/RemovePolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/RemovePolicyByRoleDraftEvent.php @@ -14,14 +14,11 @@ final class RemovePolicyByRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft */ - private $policyDraft; + private PolicyDraft $policyDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $updatedRoleDraft; + private RoleDraft $updatedRoleDraft; public function __construct( RoleDraft $updatedRoleDraft, diff --git a/src/contracts/Repository/Events/Role/RemoveRoleAssignmentEvent.php b/src/contracts/Repository/Events/Role/RemoveRoleAssignmentEvent.php index 5278c115d7..f111d530d4 100644 --- a/src/contracts/Repository/Events/Role/RemoveRoleAssignmentEvent.php +++ b/src/contracts/Repository/Events/Role/RemoveRoleAssignmentEvent.php @@ -13,8 +13,7 @@ final class RemoveRoleAssignmentEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleAssignment */ - private $roleAssignment; + private RoleAssignment $roleAssignment; public function __construct( RoleAssignment $roleAssignment diff --git a/src/contracts/Repository/Events/Role/UpdatePolicyByRoleDraftEvent.php b/src/contracts/Repository/Events/Role/UpdatePolicyByRoleDraftEvent.php index a624899877..2ffdd7d39d 100644 --- a/src/contracts/Repository/Events/Role/UpdatePolicyByRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/UpdatePolicyByRoleDraftEvent.php @@ -15,17 +15,13 @@ final class UpdatePolicyByRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft */ - private $policy; + private PolicyDraft $policy; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyUpdateStruct */ - private $policyUpdateStruct; + private PolicyUpdateStruct $policyUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\PolicyDraft */ - private $updatedPolicyDraft; + private PolicyDraft $updatedPolicyDraft; public function __construct( PolicyDraft $updatedPolicyDraft, diff --git a/src/contracts/Repository/Events/Role/UpdateRoleDraftEvent.php b/src/contracts/Repository/Events/Role/UpdateRoleDraftEvent.php index 0f2a5ab3a1..930f50a4a6 100644 --- a/src/contracts/Repository/Events/Role/UpdateRoleDraftEvent.php +++ b/src/contracts/Repository/Events/Role/UpdateRoleDraftEvent.php @@ -14,14 +14,11 @@ final class UpdateRoleDraftEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $roleDraft; + private RoleDraft $roleDraft; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleUpdateStruct */ - private $roleUpdateStruct; + private RoleUpdateStruct $roleUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\RoleDraft */ - private $updatedRoleDraft; + private RoleDraft $updatedRoleDraft; public function __construct( RoleDraft $updatedRoleDraft, diff --git a/src/contracts/Repository/Events/Section/AssignSectionEvent.php b/src/contracts/Repository/Events/Section/AssignSectionEvent.php index 8a695fc10a..7528fde171 100644 --- a/src/contracts/Repository/Events/Section/AssignSectionEvent.php +++ b/src/contracts/Repository/Events/Section/AssignSectionEvent.php @@ -14,11 +14,9 @@ final class AssignSectionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct( ContentInfo $contentInfo, diff --git a/src/contracts/Repository/Events/Section/AssignSectionToSubtreeEvent.php b/src/contracts/Repository/Events/Section/AssignSectionToSubtreeEvent.php index d717259819..8bf089e990 100644 --- a/src/contracts/Repository/Events/Section/AssignSectionToSubtreeEvent.php +++ b/src/contracts/Repository/Events/Section/AssignSectionToSubtreeEvent.php @@ -14,11 +14,9 @@ final class AssignSectionToSubtreeEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct( Location $location, diff --git a/src/contracts/Repository/Events/Section/BeforeAssignSectionEvent.php b/src/contracts/Repository/Events/Section/BeforeAssignSectionEvent.php index a2ae2f3863..96dbb90ce1 100644 --- a/src/contracts/Repository/Events/Section/BeforeAssignSectionEvent.php +++ b/src/contracts/Repository/Events/Section/BeforeAssignSectionEvent.php @@ -14,11 +14,9 @@ final class BeforeAssignSectionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo */ - private $contentInfo; + private ContentInfo $contentInfo; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct(ContentInfo $contentInfo, Section $section) { diff --git a/src/contracts/Repository/Events/Section/BeforeAssignSectionToSubtreeEvent.php b/src/contracts/Repository/Events/Section/BeforeAssignSectionToSubtreeEvent.php index a5b06848ef..192e139e90 100644 --- a/src/contracts/Repository/Events/Section/BeforeAssignSectionToSubtreeEvent.php +++ b/src/contracts/Repository/Events/Section/BeforeAssignSectionToSubtreeEvent.php @@ -14,11 +14,9 @@ final class BeforeAssignSectionToSubtreeEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct(Location $location, Section $section) { diff --git a/src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php b/src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php index 4b2208095e..f3418d245d 100644 --- a/src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php +++ b/src/contracts/Repository/Events/Section/BeforeCreateSectionEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateSectionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct */ - private $sectionCreateStruct; + private SectionCreateStruct $sectionCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section|null */ - private $section; + private ?Section $section = null; public function __construct(SectionCreateStruct $sectionCreateStruct) { diff --git a/src/contracts/Repository/Events/Section/BeforeDeleteSectionEvent.php b/src/contracts/Repository/Events/Section/BeforeDeleteSectionEvent.php index 5caf4732fa..50d7aa73b6 100644 --- a/src/contracts/Repository/Events/Section/BeforeDeleteSectionEvent.php +++ b/src/contracts/Repository/Events/Section/BeforeDeleteSectionEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteSectionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct(Section $section) { diff --git a/src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php b/src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php index 9c800aee06..231d6ddc3d 100644 --- a/src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php +++ b/src/contracts/Repository/Events/Section/BeforeUpdateSectionEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateSectionEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct */ - private $sectionUpdateStruct; + private SectionUpdateStruct $sectionUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section|null */ - private $updatedSection; + private ?Section $updatedSection = null; public function __construct(Section $section, SectionUpdateStruct $sectionUpdateStruct) { diff --git a/src/contracts/Repository/Events/Section/CreateSectionEvent.php b/src/contracts/Repository/Events/Section/CreateSectionEvent.php index 8528a0b363..fe4a9845c3 100644 --- a/src/contracts/Repository/Events/Section/CreateSectionEvent.php +++ b/src/contracts/Repository/Events/Section/CreateSectionEvent.php @@ -14,11 +14,9 @@ final class CreateSectionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\SectionCreateStruct */ - private $sectionCreateStruct; + private SectionCreateStruct $sectionCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct( Section $section, diff --git a/src/contracts/Repository/Events/Section/DeleteSectionEvent.php b/src/contracts/Repository/Events/Section/DeleteSectionEvent.php index 881d512d23..026ab50d0f 100644 --- a/src/contracts/Repository/Events/Section/DeleteSectionEvent.php +++ b/src/contracts/Repository/Events/Section/DeleteSectionEvent.php @@ -13,8 +13,7 @@ final class DeleteSectionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; public function __construct( Section $section diff --git a/src/contracts/Repository/Events/Section/UpdateSectionEvent.php b/src/contracts/Repository/Events/Section/UpdateSectionEvent.php index 0360bd61ed..c686008377 100644 --- a/src/contracts/Repository/Events/Section/UpdateSectionEvent.php +++ b/src/contracts/Repository/Events/Section/UpdateSectionEvent.php @@ -14,14 +14,11 @@ final class UpdateSectionEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $section; + private Section $section; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\SectionUpdateStruct */ - private $sectionUpdateStruct; + private SectionUpdateStruct $sectionUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Section */ - private $updatedSection; + private Section $updatedSection; public function __construct( Section $updatedSection, diff --git a/src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php b/src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php index da4d4f99c1..f2cf2f12e3 100644 --- a/src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/BeforeCreateSettingEvent.php @@ -15,11 +15,9 @@ final class BeforeCreateSettingEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\SettingCreateStruct */ - private $settingCreateStruct; + private SettingCreateStruct $settingCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting|null */ - private $setting; + private ?Setting $setting = null; public function __construct(SettingCreateStruct $settingCreateStruct) { diff --git a/src/contracts/Repository/Events/Setting/BeforeDeleteSettingEvent.php b/src/contracts/Repository/Events/Setting/BeforeDeleteSettingEvent.php index a63f1b5bd2..bf41ee1f3b 100644 --- a/src/contracts/Repository/Events/Setting/BeforeDeleteSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/BeforeDeleteSettingEvent.php @@ -13,8 +13,7 @@ final class BeforeDeleteSettingEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $setting; + private Setting $setting; public function __construct(Setting $setting) { diff --git a/src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php b/src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php index 9d4dcbc519..56b40f9a9e 100644 --- a/src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/BeforeUpdateSettingEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateSettingEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $setting; + private Setting $setting; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\SettingUpdateStruct */ - private $settingUpdateStruct; + private SettingUpdateStruct $settingUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting|null */ - private $updatedSetting; + private ?Setting $updatedSetting = null; public function __construct(Setting $setting, SettingUpdateStruct $settingUpdateStruct) { diff --git a/src/contracts/Repository/Events/Setting/CreateSettingEvent.php b/src/contracts/Repository/Events/Setting/CreateSettingEvent.php index ef418dc1bc..4fe91cda6a 100644 --- a/src/contracts/Repository/Events/Setting/CreateSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/CreateSettingEvent.php @@ -14,11 +14,9 @@ final class CreateSettingEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $setting; + private Setting $setting; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\SettingCreateStruct */ - private $settingCreateStruct; + private SettingCreateStruct $settingCreateStruct; public function __construct( Setting $setting, diff --git a/src/contracts/Repository/Events/Setting/DeleteSettingEvent.php b/src/contracts/Repository/Events/Setting/DeleteSettingEvent.php index e1c09c27f7..3cd3b8086a 100644 --- a/src/contracts/Repository/Events/Setting/DeleteSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/DeleteSettingEvent.php @@ -13,8 +13,7 @@ final class DeleteSettingEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $setting; + private Setting $setting; public function __construct(Setting $setting) { diff --git a/src/contracts/Repository/Events/Setting/UpdateSettingEvent.php b/src/contracts/Repository/Events/Setting/UpdateSettingEvent.php index f094a322ce..50245bc0a4 100644 --- a/src/contracts/Repository/Events/Setting/UpdateSettingEvent.php +++ b/src/contracts/Repository/Events/Setting/UpdateSettingEvent.php @@ -14,14 +14,11 @@ final class UpdateSettingEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $updatedSetting; + private Setting $updatedSetting; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\Setting */ - private $setting; + private Setting $setting; - /** @var \Ibexa\Contracts\Core\Repository\Values\Setting\SettingUpdateStruct */ - private $settingUpdateStruct; + private SettingUpdateStruct $settingUpdateStruct; public function __construct( Setting $updatedSetting, diff --git a/src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php b/src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php index a8c4775cc5..b68d71574e 100644 --- a/src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php +++ b/src/contracts/Repository/Events/Trash/BeforeDeleteTrashItemEvent.php @@ -15,11 +15,9 @@ final class BeforeDeleteTrashItemEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem */ - private $trashItem; + private TrashItem $trashItem; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Trash\TrashItemDeleteResult|null */ - private $result; + private ?TrashItemDeleteResult $result = null; public function __construct(TrashItem $trashItem) { diff --git a/src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php b/src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php index fb6741860c..9312d58ed1 100644 --- a/src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php +++ b/src/contracts/Repository/Events/Trash/BeforeEmptyTrashEvent.php @@ -14,8 +14,7 @@ final class BeforeEmptyTrashEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Trash\TrashItemDeleteResultList|null */ - private $resultList; + private ?TrashItemDeleteResultList $resultList = null; public function __construct() { diff --git a/src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php b/src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php index 1ac9dcd8e1..e8368c45a2 100644 --- a/src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php +++ b/src/contracts/Repository/Events/Trash/BeforeRecoverEvent.php @@ -15,14 +15,11 @@ final class BeforeRecoverEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem */ - private $trashItem; + private \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem $trashItem; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $newParentLocation; + private ?\Ibexa\Contracts\Core\Repository\Values\Content\Location $newParentLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location|null */ - private $location; + private ?\Ibexa\Contracts\Core\Repository\Values\Content\Location $location = null; public function __construct(TrashItem $trashItem, ?Location $newParentLocation = null) { diff --git a/src/contracts/Repository/Events/Trash/BeforeTrashEvent.php b/src/contracts/Repository/Events/Trash/BeforeTrashEvent.php index d952e1ac42..6d57a4a809 100644 --- a/src/contracts/Repository/Events/Trash/BeforeTrashEvent.php +++ b/src/contracts/Repository/Events/Trash/BeforeTrashEvent.php @@ -15,14 +15,11 @@ final class BeforeTrashEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem|null */ - private $result; + private ?TrashItem $result = null; - /** @var bool */ - private $resultSet = false; + private bool $resultSet = false; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/Trash/DeleteTrashItemEvent.php b/src/contracts/Repository/Events/Trash/DeleteTrashItemEvent.php index 0015fd9250..68c61052b2 100644 --- a/src/contracts/Repository/Events/Trash/DeleteTrashItemEvent.php +++ b/src/contracts/Repository/Events/Trash/DeleteTrashItemEvent.php @@ -14,11 +14,9 @@ final class DeleteTrashItemEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem */ - private $trashItem; + private TrashItem $trashItem; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Trash\TrashItemDeleteResult */ - private $result; + private TrashItemDeleteResult $result; public function __construct( TrashItemDeleteResult $result, diff --git a/src/contracts/Repository/Events/Trash/EmptyTrashEvent.php b/src/contracts/Repository/Events/Trash/EmptyTrashEvent.php index 92db321e86..164a2e2735 100644 --- a/src/contracts/Repository/Events/Trash/EmptyTrashEvent.php +++ b/src/contracts/Repository/Events/Trash/EmptyTrashEvent.php @@ -13,8 +13,7 @@ final class EmptyTrashEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Trash\TrashItemDeleteResultList */ - private $resultList; + private TrashItemDeleteResultList $resultList; public function __construct(TrashItemDeleteResultList $resultList) { diff --git a/src/contracts/Repository/Events/Trash/RecoverEvent.php b/src/contracts/Repository/Events/Trash/RecoverEvent.php index 55d47df63f..11bf51629d 100644 --- a/src/contracts/Repository/Events/Trash/RecoverEvent.php +++ b/src/contracts/Repository/Events/Trash/RecoverEvent.php @@ -14,14 +14,11 @@ final class RecoverEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem */ - private $trashItem; + private TrashItem $trashItem; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $newParentLocation; + private ?Location $newParentLocation; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct( Location $location, diff --git a/src/contracts/Repository/Events/Trash/TrashEvent.php b/src/contracts/Repository/Events/Trash/TrashEvent.php index 50503e9bd2..69dd31f641 100644 --- a/src/contracts/Repository/Events/Trash/TrashEvent.php +++ b/src/contracts/Repository/Events/Trash/TrashEvent.php @@ -14,11 +14,9 @@ final class TrashEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\TrashItem|null */ - private $trashItem; + private ?TrashItem $trashItem; public function __construct( ?TrashItem $trashItem, diff --git a/src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php b/src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php index 5f534a28dd..f1ea0939eb 100644 --- a/src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php +++ b/src/contracts/Repository/Events/URL/BeforeUpdateUrlEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateUrlEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URL */ - private $url; + private URL $url; - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URLUpdateStruct */ - private $struct; + private URLUpdateStruct $struct; - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URL|null */ - private $updatedUrl; + private ?URL $updatedUrl = null; public function __construct(URL $url, URLUpdateStruct $struct) { diff --git a/src/contracts/Repository/Events/URL/UpdateUrlEvent.php b/src/contracts/Repository/Events/URL/UpdateUrlEvent.php index 56e123893b..7dec66f271 100644 --- a/src/contracts/Repository/Events/URL/UpdateUrlEvent.php +++ b/src/contracts/Repository/Events/URL/UpdateUrlEvent.php @@ -14,14 +14,11 @@ final class UpdateUrlEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URL */ - private $url; + private URL $url; - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URLUpdateStruct */ - private $struct; + private URLUpdateStruct $struct; - /** @var \Ibexa\Contracts\Core\Repository\Values\URL\URL */ - private $updatedUrl; + private URL $updatedUrl; public function __construct( URL $updatedUrl, diff --git a/src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php b/src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php index ff4eef4428..3d3731ac0f 100644 --- a/src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php +++ b/src/contracts/Repository/Events/URLAlias/BeforeCreateGlobalUrlAliasEvent.php @@ -14,20 +14,19 @@ final class BeforeCreateGlobalUrlAliasEvent extends BeforeEvent { - private $resource; + private string $resource; - private $path; + private string $path; - private $languageCode; + private string $languageCode; - private $forwarding; + private bool $forwarding; - private $alwaysAvailable; + private bool $alwaysAvailable; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias|null */ - private $urlAlias; + private ?URLAlias $urlAlias = null; - public function __construct($resource, $path, $languageCode, $forwarding, $alwaysAvailable) + public function __construct(string $resource, string $path, string $languageCode, bool $forwarding, bool $alwaysAvailable) { $this->resource = $resource; $this->path = $path; @@ -36,27 +35,27 @@ public function __construct($resource, $path, $languageCode, $forwarding, $alway $this->alwaysAvailable = $alwaysAvailable; } - public function getResource() + public function getResource(): string { return $this->resource; } - public function getPath() + public function getPath(): string { return $this->path; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } - public function getForwarding() + public function getForwarding(): bool { return $this->forwarding; } - public function getAlwaysAvailable() + public function getAlwaysAvailable(): bool { return $this->alwaysAvailable; } diff --git a/src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php b/src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php index a9b7135bb1..dd0ff52b49 100644 --- a/src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php +++ b/src/contracts/Repository/Events/URLAlias/BeforeCreateUrlAliasEvent.php @@ -15,21 +15,19 @@ final class BeforeCreateUrlAliasEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - private $path; + private string $path; - private $languageCode; + private string $languageCode; - private $forwarding; + private bool $forwarding; - private $alwaysAvailable; + private bool $alwaysAvailable; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias|null */ - private $urlAlias; + private ?URLAlias $urlAlias = null; - public function __construct(Location $location, $path, $languageCode, $forwarding, $alwaysAvailable) + public function __construct(Location $location, string $path, string $languageCode, bool $forwarding, bool $alwaysAvailable) { $this->location = $location; $this->path = $path; @@ -43,22 +41,22 @@ public function getLocation(): Location return $this->location; } - public function getPath() + public function getPath(): string { return $this->path; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } - public function getForwarding() + public function getForwarding(): bool { return $this->forwarding; } - public function getAlwaysAvailable() + public function getAlwaysAvailable(): bool { return $this->alwaysAvailable; } diff --git a/src/contracts/Repository/Events/URLAlias/BeforeRefreshSystemUrlAliasesForLocationEvent.php b/src/contracts/Repository/Events/URLAlias/BeforeRefreshSystemUrlAliasesForLocationEvent.php index a5124320ad..afcccec73b 100644 --- a/src/contracts/Repository/Events/URLAlias/BeforeRefreshSystemUrlAliasesForLocationEvent.php +++ b/src/contracts/Repository/Events/URLAlias/BeforeRefreshSystemUrlAliasesForLocationEvent.php @@ -13,8 +13,7 @@ final class BeforeRefreshSystemUrlAliasesForLocationEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php b/src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php index 1a09d8a321..3f82fe0bc6 100644 --- a/src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php +++ b/src/contracts/Repository/Events/URLAlias/BeforeRemoveAliasesEvent.php @@ -12,14 +12,20 @@ final class BeforeRemoveAliasesEvent extends BeforeEvent { - /** @var array */ - private $aliasList; + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] */ + private array $aliasList; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] $aliasList + */ public function __construct(array $aliasList) { $this->aliasList = $aliasList; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] + */ public function getAliasList(): array { return $this->aliasList; diff --git a/src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php b/src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php index 3dfe6c382b..3e1b6f8d8f 100644 --- a/src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php +++ b/src/contracts/Repository/Events/URLAlias/CreateGlobalUrlAliasEvent.php @@ -13,18 +13,17 @@ final class CreateGlobalUrlAliasEvent extends AfterEvent { - private $resource; + private string $resource; - private $path; + private string $path; - private $languageCode; + private string $languageCode; - private $forwarding; + private bool $forwarding; - private $alwaysAvailable; + private bool $alwaysAvailable; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias */ - private $urlAlias; + private URLAlias $urlAlias; public function __construct( URLAlias $urlAlias, @@ -42,27 +41,27 @@ public function __construct( $this->urlAlias = $urlAlias; } - public function getResource() + public function getResource(): string { return $this->resource; } - public function getPath() + public function getPath(): string { return $this->path; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } - public function getForwarding() + public function getForwarding(): bool { return $this->forwarding; } - public function getAlwaysAvailable() + public function getAlwaysAvailable(): bool { return $this->alwaysAvailable; } diff --git a/src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php b/src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php index c638aa13c8..00c32c56e9 100644 --- a/src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php +++ b/src/contracts/Repository/Events/URLAlias/CreateUrlAliasEvent.php @@ -14,19 +14,17 @@ final class CreateUrlAliasEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; - private $path; + private string $path; - private $languageCode; + private string $languageCode; - private $forwarding; + private bool $forwarding; - private $alwaysAvailable; + private bool $alwaysAvailable; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias */ - private $urlAlias; + private URLAlias $urlAlias; public function __construct( URLAlias $urlAlias, @@ -49,22 +47,22 @@ public function getLocation(): Location return $this->location; } - public function getPath() + public function getPath(): string { return $this->path; } - public function getLanguageCode() + public function getLanguageCode(): string { return $this->languageCode; } - public function getForwarding() + public function getForwarding(): bool { return $this->forwarding; } - public function getAlwaysAvailable() + public function getAlwaysAvailable(): bool { return $this->alwaysAvailable; } diff --git a/src/contracts/Repository/Events/URLAlias/RefreshSystemUrlAliasesForLocationEvent.php b/src/contracts/Repository/Events/URLAlias/RefreshSystemUrlAliasesForLocationEvent.php index 5ec39e41e0..55bb51c155 100644 --- a/src/contracts/Repository/Events/URLAlias/RefreshSystemUrlAliasesForLocationEvent.php +++ b/src/contracts/Repository/Events/URLAlias/RefreshSystemUrlAliasesForLocationEvent.php @@ -13,8 +13,7 @@ final class RefreshSystemUrlAliasesForLocationEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location */ - private $location; + private Location $location; public function __construct(Location $location) { diff --git a/src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php b/src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php index 966dbdf532..adc4bf06a8 100644 --- a/src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php +++ b/src/contracts/Repository/Events/URLAlias/RemoveAliasesEvent.php @@ -12,15 +12,23 @@ final class RemoveAliasesEvent extends AfterEvent { - /** @var array */ - private $aliasList; + /** + * @var \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] + */ + private array $aliasList; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] $aliasList + */ public function __construct( array $aliasList ) { $this->aliasList = $aliasList; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias[] + */ public function getAliasList(): array { return $this->aliasList; diff --git a/src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php b/src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php index 08bca21c0e..22087fd47b 100644 --- a/src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/BeforeCreateEvent.php @@ -14,33 +14,32 @@ final class BeforeCreateEvent extends BeforeEvent { - private $sourceUrl; + private string $sourceUrl; - private $destinationUrl; + private string $destinationUrl; - private $forward; + private bool $forward; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard|null */ - private $urlWildcard; + private ?URLWildcard $urlWildcard = null; - public function __construct($sourceUrl, $destinationUrl, $forward) + public function __construct(string $sourceUrl, string $destinationUrl, bool $forward) { $this->sourceUrl = $sourceUrl; $this->destinationUrl = $destinationUrl; $this->forward = $forward; } - public function getSourceUrl() + public function getSourceUrl(): string { return $this->sourceUrl; } - public function getDestinationUrl() + public function getDestinationUrl(): string { return $this->destinationUrl; } - public function getForward() + public function getForward(): bool { return $this->forward; } diff --git a/src/contracts/Repository/Events/URLWildcard/BeforeRemoveEvent.php b/src/contracts/Repository/Events/URLWildcard/BeforeRemoveEvent.php index 07c691373e..e51e73f42c 100644 --- a/src/contracts/Repository/Events/URLWildcard/BeforeRemoveEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/BeforeRemoveEvent.php @@ -13,8 +13,7 @@ final class BeforeRemoveEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard */ - private $urlWildcard; + private URLWildcard $urlWildcard; public function __construct(URLWildcard $urlWildcard) { diff --git a/src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php b/src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php index 21e70d4508..7e6501957e 100644 --- a/src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/BeforeTranslateEvent.php @@ -14,17 +14,16 @@ final class BeforeTranslateEvent extends BeforeEvent { - private $url; + private string $url; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcardTranslationResult|null */ - private $result; + private ?URLWildcardTranslationResult $result = null; - public function __construct($url) + public function __construct(string $url) { $this->url = $url; } - public function getUrl() + public function getUrl(): string { return $this->url; } diff --git a/src/contracts/Repository/Events/URLWildcard/BeforeUpdateEvent.php b/src/contracts/Repository/Events/URLWildcard/BeforeUpdateEvent.php index d95d3b50a6..4c51bb7767 100644 --- a/src/contracts/Repository/Events/URLWildcard/BeforeUpdateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/BeforeUpdateEvent.php @@ -14,11 +14,9 @@ final class BeforeUpdateEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard */ - private $urlWildcard; + private URLWildcard $urlWildcard; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcardUpdateStruct */ - private $updateStruct; + private URLWildcardUpdateStruct $updateStruct; public function __construct( URLWildcard $urlWildcard, diff --git a/src/contracts/Repository/Events/URLWildcard/CreateEvent.php b/src/contracts/Repository/Events/URLWildcard/CreateEvent.php index 34f6f9f1b4..3f59bf6917 100644 --- a/src/contracts/Repository/Events/URLWildcard/CreateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/CreateEvent.php @@ -13,20 +13,19 @@ final class CreateEvent extends AfterEvent { - private $sourceUrl; + private string $sourceUrl; - private $destinationUrl; + private string $destinationUrl; - private $forward; + private bool $forward; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard */ - private $urlWildcard; + private URLWildcard $urlWildcard; public function __construct( URLWildcard $urlWildcard, - $sourceUrl, - $destinationUrl, - $forward + string $sourceUrl, + string $destinationUrl, + bool $forward ) { $this->sourceUrl = $sourceUrl; $this->destinationUrl = $destinationUrl; @@ -34,17 +33,17 @@ public function __construct( $this->urlWildcard = $urlWildcard; } - public function getSourceUrl() + public function getSourceUrl(): string { return $this->sourceUrl; } - public function getDestinationUrl() + public function getDestinationUrl(): string { return $this->destinationUrl; } - public function getForward() + public function getForward(): bool { return $this->forward; } diff --git a/src/contracts/Repository/Events/URLWildcard/RemoveEvent.php b/src/contracts/Repository/Events/URLWildcard/RemoveEvent.php index 6e9bf88ed8..f5a30cd887 100644 --- a/src/contracts/Repository/Events/URLWildcard/RemoveEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/RemoveEvent.php @@ -13,8 +13,7 @@ final class RemoveEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard */ - private $urlWildcard; + private URLWildcard $urlWildcard; public function __construct( URLWildcard $urlWildcard diff --git a/src/contracts/Repository/Events/URLWildcard/TranslateEvent.php b/src/contracts/Repository/Events/URLWildcard/TranslateEvent.php index 2cf8a6e731..46a044e158 100644 --- a/src/contracts/Repository/Events/URLWildcard/TranslateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/TranslateEvent.php @@ -13,10 +13,9 @@ final class TranslateEvent extends AfterEvent { - private $url; + private string $url; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcardTranslationResult */ - private $result; + private URLWildcardTranslationResult $result; public function __construct( URLWildcardTranslationResult $result, @@ -26,7 +25,7 @@ public function __construct( $this->result = $result; } - public function getUrl() + public function getUrl(): string { return $this->url; } diff --git a/src/contracts/Repository/Events/URLWildcard/UpdateEvent.php b/src/contracts/Repository/Events/URLWildcard/UpdateEvent.php index 77599ff663..a211488f4f 100644 --- a/src/contracts/Repository/Events/URLWildcard/UpdateEvent.php +++ b/src/contracts/Repository/Events/URLWildcard/UpdateEvent.php @@ -14,11 +14,9 @@ final class UpdateEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcard */ - private $urlWildcard; + private URLWildcard $urlWildcard; - /** @var \Ibexa\Contracts\Core\Repository\Values\Content\URLWildcardUpdateStruct */ - private $updateStruct; + private URLWildcardUpdateStruct $updateStruct; public function __construct( URLWildcard $urlWildcard, diff --git a/src/contracts/Repository/Events/User/AssignUserToUserGroupEvent.php b/src/contracts/Repository/Events/User/AssignUserToUserGroupEvent.php index 17fbf38fef..38d577932f 100644 --- a/src/contracts/Repository/Events/User/AssignUserToUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/AssignUserToUserGroupEvent.php @@ -14,11 +14,9 @@ final class AssignUserToUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; public function __construct( User $user, diff --git a/src/contracts/Repository/Events/User/BeforeAssignUserToUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeAssignUserToUserGroupEvent.php index b1d1aaf6d1..2aea317bec 100644 --- a/src/contracts/Repository/Events/User/BeforeAssignUserToUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeAssignUserToUserGroupEvent.php @@ -14,11 +14,9 @@ final class BeforeAssignUserToUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; public function __construct(User $user, UserGroup $userGroup) { diff --git a/src/contracts/Repository/Events/User/BeforeCreateUserEvent.php b/src/contracts/Repository/Events/User/BeforeCreateUserEvent.php index f2771575e3..5c4b35b4dd 100644 --- a/src/contracts/Repository/Events/User/BeforeCreateUserEvent.php +++ b/src/contracts/Repository/Events/User/BeforeCreateUserEvent.php @@ -15,15 +15,16 @@ final class BeforeCreateUserEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserCreateStruct */ - private $userCreateStruct; + private UserCreateStruct $userCreateStruct; - /** @var array */ - private $parentGroups; + /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] */ + private array $parentGroups; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User|null */ - private $user; + private ?User $user = null; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] $parentGroups + */ public function __construct(UserCreateStruct $userCreateStruct, array $parentGroups) { $this->userCreateStruct = $userCreateStruct; @@ -35,6 +36,9 @@ public function getUserCreateStruct(): UserCreateStruct return $this->userCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] + */ public function getParentGroups(): array { return $this->parentGroups; @@ -54,6 +58,9 @@ public function setUser(?User $user): void $this->user = $user; } + /** + * @phpstan-assert-if-true !null $this->user + */ public function hasUser(): bool { return $this->user instanceof User; diff --git a/src/contracts/Repository/Events/User/BeforeCreateUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeCreateUserGroupEvent.php index dae1206c69..a3f83cdede 100644 --- a/src/contracts/Repository/Events/User/BeforeCreateUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeCreateUserGroupEvent.php @@ -15,14 +15,11 @@ final class BeforeCreateUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroupCreateStruct */ - private $userGroupCreateStruct; + private UserGroupCreateStruct $userGroupCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $parentGroup; + private UserGroup $parentGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup|null */ - private $userGroup; + private ?UserGroup $userGroup = null; public function __construct(UserGroupCreateStruct $userGroupCreateStruct, UserGroup $parentGroup) { @@ -54,6 +51,9 @@ public function setUserGroup(?UserGroup $userGroup): void $this->userGroup = $userGroup; } + /** + * @phpstan-assert-if-true !null $this->userGroup + */ public function hasUserGroup(): bool { return $this->userGroup instanceof UserGroup; diff --git a/src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php b/src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php index 5485f87d05..e0a1c5acc9 100644 --- a/src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php +++ b/src/contracts/Repository/Events/User/BeforeDeleteUserEvent.php @@ -14,11 +14,10 @@ final class BeforeDeleteUserEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var array|null */ - private $locations; + /** @var int[]|null */ + private ?array $locations = null; public function __construct(User $user) { @@ -30,6 +29,9 @@ public function getUser(): User return $this->user; } + /** + * @return int[] + */ public function getLocations(): array { if (!$this->hasLocations()) { @@ -39,11 +41,17 @@ public function getLocations(): array return $this->locations; } + /** + * @param int[]|null $locations + */ public function setLocations(?array $locations): void { $this->locations = $locations; } + /** + * @phpstan-assert-if-true !null $this->locations + */ public function hasLocations(): bool { return is_array($this->locations); diff --git a/src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php index 2d5d76969e..2a1dda2636 100644 --- a/src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeDeleteUserGroupEvent.php @@ -14,11 +14,10 @@ final class BeforeDeleteUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var array|null */ - private $locations; + /** @var int[] */ + private ?array $locations = null; public function __construct(UserGroup $userGroup) { @@ -30,6 +29,9 @@ public function getUserGroup(): UserGroup return $this->userGroup; } + /** + * @return int[] + */ public function getLocations(): array { if (!$this->hasLocations()) { @@ -39,11 +41,17 @@ public function getLocations(): array return $this->locations; } + /** + * @param int[]|null $locations + */ public function setLocations(?array $locations): void { $this->locations = $locations; } + /** + * @phpstan-assert-if-true !null $this->locations + */ public function hasLocations(): bool { return is_array($this->locations); diff --git a/src/contracts/Repository/Events/User/BeforeMoveUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeMoveUserGroupEvent.php index db6c85b32a..4841750021 100644 --- a/src/contracts/Repository/Events/User/BeforeMoveUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeMoveUserGroupEvent.php @@ -13,11 +13,9 @@ final class BeforeMoveUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $newParent; + private UserGroup $newParent; public function __construct(UserGroup $userGroup, UserGroup $newParent) { diff --git a/src/contracts/Repository/Events/User/BeforeUnAssignUserFromUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeUnAssignUserFromUserGroupEvent.php index 3ad55444e6..42bcf52b29 100644 --- a/src/contracts/Repository/Events/User/BeforeUnAssignUserFromUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeUnAssignUserFromUserGroupEvent.php @@ -14,11 +14,9 @@ final class BeforeUnAssignUserFromUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; public function __construct(User $user, UserGroup $userGroup) { diff --git a/src/contracts/Repository/Events/User/BeforeUpdateUserEvent.php b/src/contracts/Repository/Events/User/BeforeUpdateUserEvent.php index 163e6c8d9a..fc1d856973 100644 --- a/src/contracts/Repository/Events/User/BeforeUpdateUserEvent.php +++ b/src/contracts/Repository/Events/User/BeforeUpdateUserEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateUserEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserUpdateStruct */ - private $userUpdateStruct; + private UserUpdateStruct $userUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User|null */ - private $updatedUser; + private ?User $updatedUser = null; public function __construct(User $user, UserUpdateStruct $userUpdateStruct) { @@ -54,6 +51,9 @@ public function setUpdatedUser(?User $updatedUser): void $this->updatedUser = $updatedUser; } + /** + * @phpstan-assert-if-true !null $this->updatedUser + */ public function hasUpdatedUser(): bool { return $this->updatedUser instanceof User; diff --git a/src/contracts/Repository/Events/User/BeforeUpdateUserGroupEvent.php b/src/contracts/Repository/Events/User/BeforeUpdateUserGroupEvent.php index a70046fa6b..1da2a3e26a 100644 --- a/src/contracts/Repository/Events/User/BeforeUpdateUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/BeforeUpdateUserGroupEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateUserGroupEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroupUpdateStruct */ - private $userGroupUpdateStruct; + private UserGroupUpdateStruct $userGroupUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup|null */ - private $updatedUserGroup; + private ?UserGroup $updatedUserGroup = null; public function __construct(UserGroup $userGroup, UserGroupUpdateStruct $userGroupUpdateStruct) { @@ -54,6 +51,9 @@ public function setUpdatedUserGroup(?UserGroup $updatedUserGroup): void $this->updatedUserGroup = $updatedUserGroup; } + /** + * @phpstan-assert-if-true !null $this->updatedUserGroup + */ public function hasUpdatedUserGroup(): bool { return $this->updatedUserGroup instanceof UserGroup; diff --git a/src/contracts/Repository/Events/User/BeforeUpdateUserPasswordEvent.php b/src/contracts/Repository/Events/User/BeforeUpdateUserPasswordEvent.php index cc93f1423a..9aee04ad8a 100644 --- a/src/contracts/Repository/Events/User/BeforeUpdateUserPasswordEvent.php +++ b/src/contracts/Repository/Events/User/BeforeUpdateUserPasswordEvent.php @@ -14,14 +14,11 @@ final class BeforeUpdateUserPasswordEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var string */ - private $newPassword; + private string $newPassword; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User|null */ - private $updatedUser; + private ?User $updatedUser = null; public function __construct(User $user, string $newPassword) { @@ -53,6 +50,9 @@ public function setUpdatedUser(?User $updatedUser): void $this->updatedUser = $updatedUser; } + /** + * @phpstan-assert-if-true !null $this->updatedUser + */ public function hasUpdatedUser(): bool { return $this->updatedUser instanceof User; diff --git a/src/contracts/Repository/Events/User/BeforeUpdateUserTokenEvent.php b/src/contracts/Repository/Events/User/BeforeUpdateUserTokenEvent.php index 82ca2131dc..2c66883b74 100644 --- a/src/contracts/Repository/Events/User/BeforeUpdateUserTokenEvent.php +++ b/src/contracts/Repository/Events/User/BeforeUpdateUserTokenEvent.php @@ -15,14 +15,11 @@ final class BeforeUpdateUserTokenEvent extends BeforeEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserTokenUpdateStruct */ - private $userTokenUpdateStruct; + private UserTokenUpdateStruct $userTokenUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User|null */ - private $updatedUser; + private ?User $updatedUser = null; public function __construct(User $user, UserTokenUpdateStruct $userTokenUpdateStruct) { @@ -54,6 +51,9 @@ public function setUpdatedUser(?User $updatedUser): void $this->updatedUser = $updatedUser; } + /** + * @phpstan-assert-if-true !null $this->updatedUser + */ public function hasUpdatedUser(): bool { return $this->updatedUser instanceof User; diff --git a/src/contracts/Repository/Events/User/CreateUserEvent.php b/src/contracts/Repository/Events/User/CreateUserEvent.php index f86983991e..440b4fbf1a 100644 --- a/src/contracts/Repository/Events/User/CreateUserEvent.php +++ b/src/contracts/Repository/Events/User/CreateUserEvent.php @@ -14,15 +14,16 @@ final class CreateUserEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserCreateStruct */ - private $userCreateStruct; + private UserCreateStruct $userCreateStruct; - /** @var array */ - private $parentGroups; + /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] */ + private array $parentGroups; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; + /** + * @param \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] $parentGroups + */ public function __construct( User $user, UserCreateStruct $userCreateStruct, @@ -38,6 +39,9 @@ public function getUserCreateStruct(): UserCreateStruct return $this->userCreateStruct; } + /** + * @return \Ibexa\Contracts\Core\Repository\Values\User\UserGroup[] + */ public function getParentGroups(): array { return $this->parentGroups; diff --git a/src/contracts/Repository/Events/User/CreateUserGroupEvent.php b/src/contracts/Repository/Events/User/CreateUserGroupEvent.php index b7cd39820d..3fc6724318 100644 --- a/src/contracts/Repository/Events/User/CreateUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/CreateUserGroupEvent.php @@ -14,14 +14,11 @@ final class CreateUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroupCreateStruct */ - private $userGroupCreateStruct; + private UserGroupCreateStruct $userGroupCreateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $parentGroup; + private UserGroup $parentGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; public function __construct( UserGroup $userGroup, diff --git a/src/contracts/Repository/Events/User/DeleteUserEvent.php b/src/contracts/Repository/Events/User/DeleteUserEvent.php index 1ceee53299..56053a3fa2 100644 --- a/src/contracts/Repository/Events/User/DeleteUserEvent.php +++ b/src/contracts/Repository/Events/User/DeleteUserEvent.php @@ -13,12 +13,14 @@ final class DeleteUserEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var array */ - private $locations; + /** @var int[] */ + private array $locations; + /** + * @param int[] $locations + */ public function __construct( array $locations, User $user @@ -32,6 +34,9 @@ public function getUser(): User return $this->user; } + /** + * @return int[] + */ public function getLocations(): array { return $this->locations; diff --git a/src/contracts/Repository/Events/User/DeleteUserGroupEvent.php b/src/contracts/Repository/Events/User/DeleteUserGroupEvent.php index 312b9df192..c2b04138b2 100644 --- a/src/contracts/Repository/Events/User/DeleteUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/DeleteUserGroupEvent.php @@ -13,12 +13,14 @@ final class DeleteUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var array */ - private $locations; + /** @var int[] */ + private array $locations; + /** + * @param int[] $locations + */ public function __construct( array $locations, UserGroup $userGroup @@ -32,6 +34,9 @@ public function getUserGroup(): UserGroup return $this->userGroup; } + /** + * @return int[] + */ public function getLocations(): array { return $this->locations; diff --git a/src/contracts/Repository/Events/User/MoveUserGroupEvent.php b/src/contracts/Repository/Events/User/MoveUserGroupEvent.php index 4c0cb5710b..647ec301ea 100644 --- a/src/contracts/Repository/Events/User/MoveUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/MoveUserGroupEvent.php @@ -13,11 +13,9 @@ final class MoveUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $newParent; + private UserGroup $newParent; public function __construct( UserGroup $userGroup, diff --git a/src/contracts/Repository/Events/User/UnAssignUserFromUserGroupEvent.php b/src/contracts/Repository/Events/User/UnAssignUserFromUserGroupEvent.php index 8a563a5c69..c6f33e96a0 100644 --- a/src/contracts/Repository/Events/User/UnAssignUserFromUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/UnAssignUserFromUserGroupEvent.php @@ -14,11 +14,9 @@ final class UnAssignUserFromUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; public function __construct( User $user, diff --git a/src/contracts/Repository/Events/User/UpdateUserEvent.php b/src/contracts/Repository/Events/User/UpdateUserEvent.php index 61c58e892a..334819b9d6 100644 --- a/src/contracts/Repository/Events/User/UpdateUserEvent.php +++ b/src/contracts/Repository/Events/User/UpdateUserEvent.php @@ -14,14 +14,11 @@ final class UpdateUserEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserUpdateStruct */ - private $userUpdateStruct; + private UserUpdateStruct $userUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $updatedUser; + private User $updatedUser; public function __construct( User $updatedUser, diff --git a/src/contracts/Repository/Events/User/UpdateUserGroupEvent.php b/src/contracts/Repository/Events/User/UpdateUserGroupEvent.php index e51d086141..d23b0ba1d5 100644 --- a/src/contracts/Repository/Events/User/UpdateUserGroupEvent.php +++ b/src/contracts/Repository/Events/User/UpdateUserGroupEvent.php @@ -14,13 +14,11 @@ final class UpdateUserGroupEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroup */ - private $userGroup; + private UserGroup $userGroup; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserGroupUpdateStruct */ - private $userGroupUpdateStruct; + private UserGroupUpdateStruct $userGroupUpdateStruct; - private $updatedUserGroup; + private UserGroup $updatedUserGroup; public function __construct( UserGroup $updatedUserGroup, diff --git a/src/contracts/Repository/Events/User/UpdateUserPasswordEvent.php b/src/contracts/Repository/Events/User/UpdateUserPasswordEvent.php index b12e1d59f0..7dce670593 100644 --- a/src/contracts/Repository/Events/User/UpdateUserPasswordEvent.php +++ b/src/contracts/Repository/Events/User/UpdateUserPasswordEvent.php @@ -13,14 +13,11 @@ final class UpdateUserPasswordEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var string */ - private $newPassword; + private string $newPassword; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $updatedUser; + private User $updatedUser; public function __construct( User $updatedUser, diff --git a/src/contracts/Repository/Events/User/UpdateUserTokenEvent.php b/src/contracts/Repository/Events/User/UpdateUserTokenEvent.php index d6fca1a7b9..c9aa29821d 100644 --- a/src/contracts/Repository/Events/User/UpdateUserTokenEvent.php +++ b/src/contracts/Repository/Events/User/UpdateUserTokenEvent.php @@ -14,14 +14,11 @@ final class UpdateUserTokenEvent extends AfterEvent { - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $user; + private User $user; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\UserTokenUpdateStruct */ - private $userTokenUpdateStruct; + private UserTokenUpdateStruct $userTokenUpdateStruct; - /** @var \Ibexa\Contracts\Core\Repository\Values\User\User */ - private $updatedUser; + private User $updatedUser; public function __construct( User $updatedUser, diff --git a/src/contracts/Repository/Events/UserPreference/BeforeSetUserPreferenceEvent.php b/src/contracts/Repository/Events/UserPreference/BeforeSetUserPreferenceEvent.php index f59525ee10..239b3449b4 100644 --- a/src/contracts/Repository/Events/UserPreference/BeforeSetUserPreferenceEvent.php +++ b/src/contracts/Repository/Events/UserPreference/BeforeSetUserPreferenceEvent.php @@ -13,7 +13,7 @@ final class BeforeSetUserPreferenceEvent extends BeforeEvent { /** @var \Ibexa\Contracts\Core\Repository\Values\UserPreference\UserPreferenceSetStruct[] */ - private $userPreferenceSetStructs; + private array $userPreferenceSetStructs; public function __construct(array $userPreferenceSetStructs) { diff --git a/src/contracts/Repository/Events/UserPreference/SetUserPreferenceEvent.php b/src/contracts/Repository/Events/UserPreference/SetUserPreferenceEvent.php index 8120251f49..ee438751b4 100644 --- a/src/contracts/Repository/Events/UserPreference/SetUserPreferenceEvent.php +++ b/src/contracts/Repository/Events/UserPreference/SetUserPreferenceEvent.php @@ -13,7 +13,7 @@ final class SetUserPreferenceEvent extends AfterEvent { /** @var \Ibexa\Contracts\Core\Repository\Values\UserPreference\UserPreferenceSetStruct[] */ - private $userPreferenceSetStructs; + private array $userPreferenceSetStructs; public function __construct(array $userPreferenceSetStructs) { diff --git a/src/contracts/Repository/UserService.php b/src/contracts/Repository/UserService.php index 58aec8f8f8..5cea05bc42 100644 --- a/src/contracts/Repository/UserService.php +++ b/src/contracts/Repository/UserService.php @@ -91,11 +91,11 @@ public function loadSubUserGroups(UserGroup $userGroup, int $offset = 0, int $li * * @param \Ibexa\Contracts\Core\Repository\Values\User\UserGroup $userGroup * - * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to create a user group - * * @return int[] Affected Location Id's (List of Locations of the Content that was deleted) + * + * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to create a user group */ - public function deleteUserGroup(UserGroup $userGroup): iterable; + public function deleteUserGroup(UserGroup $userGroup): array; /** * Moves the user group to another parent. @@ -224,11 +224,11 @@ public function loadUserByToken(string $hash, array $prioritizedLanguages = []): * * @param \Ibexa\Contracts\Core\Repository\Values\User\User $user * - * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to delete the user - * * @return int[] Affected Location Id's (List of Locations of the Content that was deleted) + * + * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to delete the user */ - public function deleteUser(User $user): iterable; + public function deleteUser(User $user): array; /** * Updates a user. diff --git a/src/lib/Event/ContentService.php b/src/lib/Event/ContentService.php index e9f4fb9a67..5c168a3089 100644 --- a/src/lib/Event/ContentService.php +++ b/src/lib/Event/ContentService.php @@ -118,7 +118,7 @@ public function updateContentMetadata( return $content; } - public function deleteContent(ContentInfo $contentInfo): iterable + public function deleteContent(ContentInfo $contentInfo): array { $eventData = [$contentInfo]; diff --git a/src/lib/Event/UserService.php b/src/lib/Event/UserService.php index 94b7346d1f..1982fc6f14 100644 --- a/src/lib/Event/UserService.php +++ b/src/lib/Event/UserService.php @@ -82,7 +82,7 @@ public function createUserGroup( return $userGroup; } - public function deleteUserGroup(UserGroup $userGroup): iterable + public function deleteUserGroup(UserGroup $userGroup): array { $eventData = [$userGroup]; @@ -181,7 +181,7 @@ public function createUser( return $user; } - public function deleteUser(User $user): iterable + public function deleteUser(User $user): array { $eventData = [$user]; diff --git a/src/lib/Repository/ContentService.php b/src/lib/Repository/ContentService.php index e970f29fe4..50e2c2e505 100644 --- a/src/lib/Repository/ContentService.php +++ b/src/lib/Repository/ContentService.php @@ -1039,7 +1039,7 @@ protected function publishUrlAliasesForContent(APIContent $content, bool $update * * @return mixed[] Affected Location Id's */ - public function deleteContent(ContentInfo $contentInfo): iterable + public function deleteContent(ContentInfo $contentInfo): array { $contentInfo = $this->internalLoadContentInfoById($contentInfo->id); $versionInfo = $this->persistenceHandler->contentHandler()->loadVersionInfo( diff --git a/src/lib/Repository/SiteAccessAware/ContentService.php b/src/lib/Repository/SiteAccessAware/ContentService.php index ffad838ff7..1b9c7c195c 100644 --- a/src/lib/Repository/SiteAccessAware/ContentService.php +++ b/src/lib/Repository/SiteAccessAware/ContentService.php @@ -138,7 +138,7 @@ public function updateContentMetadata(ContentInfo $contentInfo, ContentMetadataU return $this->service->updateContentMetadata($contentInfo, $contentMetadataUpdateStruct); } - public function deleteContent(ContentInfo $contentInfo): iterable + public function deleteContent(ContentInfo $contentInfo): array { return $this->service->deleteContent($contentInfo); } diff --git a/src/lib/Repository/SiteAccessAware/UserService.php b/src/lib/Repository/SiteAccessAware/UserService.php index 5b04d386e4..9fb7ef4504 100644 --- a/src/lib/Repository/SiteAccessAware/UserService.php +++ b/src/lib/Repository/SiteAccessAware/UserService.php @@ -75,7 +75,7 @@ public function loadSubUserGroups(UserGroup $userGroup, int $offset = 0, int $li return $this->service->loadSubUserGroups($userGroup, $offset, $limit, $prioritizedLanguages); } - public function deleteUserGroup(UserGroup $userGroup): iterable + public function deleteUserGroup(UserGroup $userGroup): array { return $this->service->deleteUserGroup($userGroup); } @@ -131,7 +131,7 @@ public function loadUsersByEmail(string $email, array $prioritizedLanguages = nu return $this->service->loadUsersByEmail($email, $prioritizedLanguages); } - public function deleteUser(User $user): iterable + public function deleteUser(User $user): array { return $this->service->deleteUser($user); } diff --git a/src/lib/Repository/UserService.php b/src/lib/Repository/UserService.php index 7a97184b0d..0e4d6e3f7b 100644 --- a/src/lib/Repository/UserService.php +++ b/src/lib/Repository/UserService.php @@ -283,7 +283,7 @@ protected function searchSubGroups(Location $location, int $offset = 0, int $lim * * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to create a user group */ - public function deleteUserGroup(APIUserGroup $userGroup): iterable + public function deleteUserGroup(APIUserGroup $userGroup): array { $loadedUserGroup = $this->loadUserGroup($userGroup->id); @@ -624,7 +624,7 @@ public function loadUserByToken(string $hash, array $prioritizedLanguages = []): * * @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to delete the user */ - public function deleteUser(APIUser $user): iterable + public function deleteUser(APIUser $user): array { $loadedUser = $this->loadUser($user->id);