-
Notifications
You must be signed in to change notification settings - Fork 10
NGSTACK-995 upgrade bundle to ibexa 5 #39
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f99fb0e
NGSTACK-995 update visitor-patterns argument to be of type CriterionI…
a4c5740
NGSTACK-995 remove unnecessary argument '' from methods and specify t…
92a3b90
NGSTACK-995 replace deprecated 'execute()' method with 'executeQuery'…
7cbbaf0
NGSTACK-995 remove colon in front of 'key' argument for 'setParameter…
7b561b3
NGSTACK-995 fix EnhancedSelectionStorageTest test
8fef5a4
NGSTACK-995 update composer.json with Ibexa v5 and add 'ibexa/solr' b…
63eab05
NGSTACK-995 remove 'ibexa-forms-bundle' from composer.json
49fe272
NGSTACK-995 apply php-cs-fixer to fix two files
7c30ee5
NGSTACK-995 fix tests and migrate phpunit.xml file to newer version
a0ddb36
NGSTACK-995 bump php version to 8.3 and symfony to 7.3 in 'tests.yml'…
795f61f
NGSTACK-995 keep the FQCN in PHPDocs
8e2c4f3
NGSTACK-995 remove constructor from 'EnhancedSelectionStorage' class
a1ccf36
NGSTACK-995 add backslash at the beginning of FQCN in PHPDocs
dcf91f9
NGSTACK-995 add back 'netgen/ibexa-forms-bundle' to require-dev secti…
1e95b15
NGSTACK-995 update PHPUnit to version 12, migrate 'phpunit.xml' file …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,36 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <phpunit bootstrap="vendor/autoload.php" | ||
| <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| bootstrap="vendor/autoload.php" | ||
| backupGlobals="false" | ||
| backupStaticAttributes="false" | ||
| convertErrorsToExceptions="true" | ||
| convertNoticesToExceptions="true" | ||
| convertWarningsToExceptions="true" | ||
| colors="true" | ||
| verbose="true" | ||
| processIsolation="false" | ||
| stopOnFailure="false" | ||
| beStrictAboutTestsThatDoNotTestAnything="false" | ||
| xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd" | ||
| cacheDirectory=".phpunit.cache" | ||
| backupStaticProperties="false" | ||
| > | ||
| <testsuites> | ||
| <testsuite name="Netgen\EnhancedSelectionBundle\Tests"> | ||
| <directory>tests</directory> | ||
| </testsuite> | ||
| </testsuites> | ||
| <filter> | ||
| <whitelist> | ||
| <directory suffix=".php">bundle</directory> | ||
| <exclude> | ||
| <directory>bundle/DependencyInjection</directory> | ||
| <directory>bundle/Resources</directory> | ||
| <directory>vendor</directory> | ||
| <file>bundle/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/EnhancedSelection.php</file> | ||
| <file>bundle/Core/FieldType/EnhancedSelection/SearchField.php</file> | ||
| <file>bundle/NetgenEnhancedSelectionBundle.php</file> | ||
| </exclude> | ||
| </whitelist> | ||
| </filter> | ||
|
|
||
| <logging> | ||
| <log type="junit" target="build/report.junit.xml"/> | ||
| <log type="coverage-html" target="build/coverage"/> | ||
| <log type="coverage-text" target="build/coverage.txt"/> | ||
| <log type="coverage-clover" target="build/logs/clover.xml"/> | ||
| <junit outputFile="build/report.junit.xml"/> | ||
| </logging> | ||
|
|
||
| <source> | ||
| <include> | ||
| <directory suffix=".php">bundle</directory> | ||
| </include> | ||
| <exclude> | ||
| <directory>bundle/DependencyInjection</directory> | ||
| <directory>bundle/Resources</directory> | ||
| <directory>vendor</directory> | ||
| <file>bundle/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/EnhancedSelection.php</file> | ||
| <file>bundle/Core/FieldType/EnhancedSelection/SearchField.php</file> | ||
| <file>bundle/NetgenEnhancedSelectionBundle.php</file> | ||
| </exclude> | ||
| </source> | ||
| </phpunit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superflous PHPDoc. This method does not throw anything and all @param and @return are already declared in method signature itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the method declaration in the abstract class, it has a PHPDoc which says that it throws an
InvalidArgumentException. Also, in the method itself, the$this->getFieldDefinitionIds()method is called, which throws anInvalidArgumentException.I added the PHPDoc first and foremost to say that the
CriterionInterfaceparam is actuallyEnhancedSelectionCriterionclass. If that's alright with you, I would just keep this info in PHPDoc and remove everything else.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine.
As for @throws, we should not specify those if the method does not directly throw. Otherwise, we might put every throw on every method ever :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
795f61f
Removed the @throws and left only the param for
CriterionInterface, which I've put to be FQCN.