@@ -88,7 +88,6 @@ public function getType(): string
8888 *
8989 * @param \Cake\ORM\Entity $resource Entity
9090 * @return string
91- * @psalm-suppress MoreSpecificImplementedParamType
9291 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
9392 */
9493 public function getId ($ resource ): ?string
@@ -129,10 +128,7 @@ protected function getRepository(?EntityInterface $entity = null): Table
129128 protected function entityToShallowArray (EntityInterface $ entity ): array
130129 {
131130 $ result = [];
132- /** @psalm-suppress UndefinedInterfaceMethod */
133- $ properties = method_exists ($ entity , 'getVisible ' )
134- ? $ entity ->getVisible ()
135- : $ entity ->visibleProperties ();
131+ $ properties = $ entity ->getVisible ();
136132 foreach ($ properties as $ property ) {
137133 if ($ property [0 ] === '_ ' ) {
138134 continue ;
@@ -161,7 +157,6 @@ protected function entityToShallowArray(EntityInterface $entity): array
161157 * @param \Cake\Datasource\EntityInterface $resource Entity
162158 * @param \Neomerx\JsonApi\Contracts\Schema\ContextInterface $context The Context
163159 * @return array
164- * @psalm-suppress MoreSpecificImplementedParamType
165160 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
166161 */
167162 public function getAttributes ($ resource , ContextInterface $ context ): iterable
@@ -206,7 +201,6 @@ public function getAttributes($resource, ContextInterface $context): iterable
206201 * @param \Cake\Datasource\EntityInterface $resource Entity object
207202 * @param \Neomerx\JsonApi\Contracts\Schema\ContextInterface $context The Context
208203 * @return array
209- * @psalm-suppress MoreSpecificImplementedParamType
210204 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
211205 */
212206 public function getRelationships ($ resource , ContextInterface $ context ): iterable
@@ -284,7 +278,6 @@ public function getRelationships($resource, ContextInterface $context): iterable
284278 *
285279 * @param \Cake\ORM\Entity|null $resource Entity, null only to be compatible with the Neomerx method
286280 * @return string
287- * @psalm-suppress MoreSpecificImplementedParamType
288281 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
289282 */
290283 public function getSelfSubUrl ($ resource = null ): string
@@ -329,7 +322,6 @@ protected function getAssociationByProperty(string $name): ?Association
329322 * @param \Cake\Datasource\EntityInterface $resource Entity
330323 * @param string $name Relationship name in lowercase singular or plural
331324 * @return \Neomerx\JsonApi\Contracts\Schema\LinkInterface
332- * @psalm-suppress MoreSpecificImplementedParamType
333325 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
334326 */
335327 public function getRelationshipSelfLink ($ resource , string $ name ): LinkInterface
@@ -370,7 +362,6 @@ public function getRelationshipSelfLink($resource, string $name): LinkInterface
370362 * @param \Cake\Datasource\EntityInterface $resource Entity
371363 * @param string $name Relationship name in lowercase singular or plural
372364 * @return \Neomerx\JsonApi\Contracts\Schema\LinkInterface
373- * @psalm-suppress MoreSpecificImplementedParamType
374365 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
375366 */
376367 public function getRelationshipRelatedLink ($ resource , string $ name ): LinkInterface
0 commit comments