- 🇺🇸United States mile23 Seattle, WA
It seems that there's already a commit for this issue at https://git.drupalcode.org/project/select_or_other/-/commit/ae0585ff8cc5...
This issue improves PHP 8.1 compatibility for tests and is worthwhile.
It'd be great to have a roadmap to a release that supports Drupal 10, but for now 4.x-dev works, and this patch enhances it.
Verified that the patch applies, and that it can be installed using Drupal 9.5.x and 10.0.x, using both PHP 7.4 and 8.1.
- Status changed to Needs work
almost 2 years ago 10:28am 16 March 2023 - 🇮🇳India prashant.c Dharamshala
There are following errors identified by
drupal-check
, a few of them seem critical:------ ----------------------------------------------------------------------- Line src/Plugin/Validation/AllowedValuesConstraintValidator.php ------ ----------------------------------------------------------------------- 61 Access to an undefined property Symfony\Component\Validator\Constraint::$choices. 137 Call to an undefined method Drupal\Core\TypedData\DataDefinitionInterface::getMainPropertyName(). 141 Call to an undefined method Drupal\Core\TypedData\TypedDataInterface::get(). ------ ----------------------------------------------------------------------- ------ ----------------------------------------------------------------------------------------- Line tests/src/Unit/ListWidgetTest.php ------ ----------------------------------------------------------------------------------------- 90 Variable $mock in PHPDoc tag @var does not match assigned variable $test_values. 110 Variable $mock in PHPDoc tag @var does not match assigned variable $result. 122 Variable $mock in PHPDoc tag @var does not match assigned variable $result. 201 PHPDoc tag @param for parameter $fieldDefinition with type Drupal\Core\Field\FieldDefinitionInterface|PHPUnit\Framework\MockObject\MockObject|null is not subtype of native type Drupal\Core\Field\FieldDefinitionInterface|null. ------ ----------------------------------------------------------------------------------------- ------ ---------------------------------------------------------------------------- Line tests/src/Unit/ReferenceWidgetTest.php ------ ---------------------------------------------------------------------------- 154 Call to an undefined method Drupal\select_or_other\Plugin\Field\FieldWidget\ReferenceWidget::method(). ------ ---------------------------------------------------------------------------- ------ -------------------------------------------------------- Line tests/src/Unit/UnitTestBase.php ------ -------------------------------------------------------- 58 Variable $container in PHPDoc tag @var does not exist. ------ -------------------------------------------------------- [ERROR] Found 9 errors
- 🇦🇺Australia acbramley
Those are phpstan errors, they can be fixed in a separate issue.
- Status changed to RTBC
almost 2 years ago 4:10pm 18 April 2023 - 🇪🇪Estonia ValkaTR
is it ok to use "select or other" module in drupal 10 already?
- Status changed to Fixed
over 1 year ago 11:15pm 15 June 2023 - 🇧🇪Belgium daften
I am not incorporating any further patches through this issue. Other fixes were done through issues like #3239671: Fixing test in 4.x Branch → and the earlier commit in here. Testing the latest dev version shows no issues by upgrade_status. Any further fixes that are needed should go through different issues, including the cosmetic changes. Those are very welcome of course, but I'd prefer to keep issues centered on their scope :)
There will be a release for select_or_other with D10 compatibility in less than an hour, sorry for the delays!
Automatically closed - issue fixed for 2 weeks with no activity.