Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PHP warning by removing array type hint #27

Closed
wants to merge 1 commit into from
Closed

Remove PHP warning by removing array type hint #27

wants to merge 1 commit into from

Conversation

kayakr
Copy link
Contributor

@kayakr kayakr commented May 20, 2019

Warning: Declaration of Drupal\controlled_access_terms\EDTFConverter::dateIso8601Value(array $data) should be compatible with Drupal\rdf\CommonDataConverter::dateIso8601Value($data) in require() (line 10 of modules/contrib/controlled_access_terms/src/EDTFConverter.php).

Warning: Declaration of Drupal\controlled_access_terms\EDTFConverter::dateIso8601Value(array $data) should be compatible with Drupal\rdf\CommonDataConverter::dateIso8601Value($data) in require() (line 10 of modules/contrib/controlled_access_terms/src/EDTFConverter.php).
@seth-shaw-unlv
Copy link
Contributor

So, we can't simply remove the array type hint because the Drupal coding standards doesn't like it, even though the CommonDataConverter doesn't have it. Does that mean the rdf module's CommonDataConverter doesn't pass Drupal coding standards? How did that get through?

@seth-shaw-unlv
Copy link
Contributor

Okay, regardless of how they got away with using the array in docs but not using the type hint, using the 'mixed' type hint allows us to pass the coding standards and not use a type hint, so no errors!

I have another PR incoming that address this and the other issues in Islandora/documentation/issues/1123. Please stand by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants