πŸ‡³πŸ‡±Netherlands @arkener

Account created on 4 September 2012, over 12 years ago
  • Manager Portals / Senior Software Engineer at INDICIAΒ 
#

Merge Requests

Recent comments

πŸ‡³πŸ‡±Netherlands arkener

Created a new branch and MR for 1.1.x

πŸ‡³πŸ‡±Netherlands arkener

I encountered this issue on a project that uses custom content entities without bundles. In my case, the content appears to be correctly indexed into our VDB (Milvus, in this instance). However, we still receive the same notices on the /admin/config/search/search-api/index/<index>/fields page. These notices are linked to the "Preview content to be vectorized" feature, which doesn't function properly when no bundles are defined.

I've added an MR that resolved these issues for us.

πŸ‡³πŸ‡±Netherlands arkener

arkener β†’ made their first commit to this issue’s fork.

πŸ‡³πŸ‡±Netherlands arkener

This issue has resurfaced in version 4.5. It appears the commit was pushed to the 3.x branch, and then the 4.4 tag was created from that branch. Because the change was never committed to the 4.x branch, it disappeared once the 4.5 tag was created from the 4.x branch.

πŸ‡³πŸ‡±Netherlands arkener

Applying the MR resolved this issue for me, this change pullls the code back in line with Drupal\Core\Action\ActionInterface

πŸ‡³πŸ‡±Netherlands arkener

Applying the MR resolved this notice for me, the failing test seems to be unrelated.

πŸ‡³πŸ‡±Netherlands arkener

Simple but effective, #5 resolved these notices for me.

πŸ‡³πŸ‡±Netherlands arkener

As Kristiaan noted, fixing incorrectly cased class names should be straightforward, given that class names are not case-sensitive. For other scenarios, such as the use of underscores, one of the backward compatibility approaches mentioned in #8 should be used. In the end, this change simply enforces an existing rule. If necessary, developers can always ignore the Drupal.NamingConventions.ValidClassName.NoUpperAcronyms result by employing the available PHPCS ignore implementations.

πŸ‡³πŸ‡±Netherlands arkener

Tested the latest version of the MR on my instance of 11.1.0 and it also resolved the Unsupported operand types: array + null issue for me.

πŸ‡³πŸ‡±Netherlands arkener

Thanks for your quick reaction Kristiaan! I've tested this patch on 11.1.0 and I'm now receiving an Unsupported operand types: array + null error:

Stacktrace:

  at /var/www/html/drupal/modules/contrib/group/src/Plugin/Group/RelationHandlerDefault/OperationProvider.php:78
  at Drupal\group\Plugin\Group\RelationHandlerDefault\OperationProvider->getOperations()
     (/var/www/html/drupal/modules/contrib/group/src/Plugin/Group/RelationHandler/OperationProviderTrait.php:62)
  at Drupal\group\Plugin\Group\RelationHandler\EmptyOperationProvider->getOperations()
     (/var/www/html/drupal/modules/contrib/group/src/Entity/Controller/GroupTypeController.php:202)
...

Adding a simple fallback for no invokes ?? [] on OperationProvider.php:78 fixed this issue for me.

πŸ‡³πŸ‡±Netherlands arkener

Agreed, we should remove the sniff and revisit once πŸ“Œ Coding standards for "use" statements RTBC is approved. I've merged the PR into 3.x, and I'll plan to create a new release this weekend, assuming no unexpected issues pop up. Thanks for the work on this!

πŸ‡³πŸ‡±Netherlands arkener

Also running into this issue. Can we get a new tag so this issue resolves itself? The project page currently defines 4.0.3 as having D10 support, so releasing a new tag might fix some confusion.

πŸ‡³πŸ‡±Netherlands arkener

Agree with #35, the current description might indicate that the null coalescing assignment operator is included in this coding standard. Scoping this in the description to ?? would clarify this.

I would also clarify the title a bit, the current title has some ambiguity in regards to what we 're replacing.

Use Null-Coalescing Operator ?? to replace isset with ternary operator

with something like

Use Null-Coalescing Operator ?? instead of a ternary operator with an isset statement

πŸ‡³πŸ‡±Netherlands arkener

MR: https://www.drupal.org/project/coder/issues/3407995 ✨ Add sniff for declare(strict_types=1); Needs review

πŸ‡³πŸ‡±Netherlands arkener

3.8.0 has been released and the Composer package pointer has been changed to https://github.com/PHPCSStandards/PHP_CodeSniffer.

πŸ‡³πŸ‡±Netherlands arkener

The Composer package will keep its current vendor and name. Packagist will change its reference to the new GitHub repository, resulting in no further actions needed here. Keeping this issue open until this switch has been made. See https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/135

πŸ‡³πŸ‡±Netherlands arkener

+1 makes sense to keep this consistent with other controle structures like `switch ()`

πŸ‡³πŸ‡±Netherlands arkener

Our upstream dependencies have also created issues / commits in regards to this change:

We should wait with creating a release until 3.8.0 has been tagged in the forked Codesniffer repository, as stated in the original issue. Created a draft MR https://github.com/pfrenssen/coder/pull/216 to follow this change.

πŸ‡³πŸ‡±Netherlands arkener

Arkener β†’ made their first commit to this issue’s fork.

πŸ‡³πŸ‡±Netherlands arkener

Also ran into this issue. Extension::getExtensionFilename() can sometimes return NULL, mostly in the case of submodules, resulting in this issue. #2 fixed this issue for me.

πŸ‡³πŸ‡±Netherlands arkener

Good catch, thanks for the patch. This has now been fixed in the 1.x branch.

πŸ‡³πŸ‡±Netherlands arkener

Agreed that we shouldn't redefine this to a warning, as the coding standard dictates this as a "MUST".

The following phpcs.xml syntax can be used to redefine the severity for a specific rule when needed:

<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
  <type>warning</type>
</rule>
πŸ‡³πŸ‡±Netherlands arkener

+1 to option A with required trailing commas.

πŸ‡³πŸ‡±Netherlands arkener

Released a stable release for D8, D9 and D10.

πŸ‡³πŸ‡±Netherlands arkener

This issue is most likely caused by the same issue as πŸ› Deprecation message on validation of empty file key Fixed . While KeyProviderInterface::getKeyValue() currently states that the return statement should always be a string, this seems to currently not be the case, for example when using the environment and file key types.

I've also created πŸ› KeyProviderInterface::getKeyValue() doesn't always return a string Needs review upstream, so we can some clarification on this issue.

πŸ‡³πŸ‡±Netherlands arkener

Arkener β†’ created an issue.

πŸ‡³πŸ‡±Netherlands arkener

Validated the latest release of 4.x using Drush 12 and there doesn't seem to be any issue running the command. Entities are updated as expected and no warnings are displayed. Though it's probably best to wait with actually adding support for Drush 12 until the RC or stable release is created.

πŸ‡³πŸ‡±Netherlands arkener

This issue has been fixed in πŸ› Tables Removed After Ajax Completes Fixed . The FooTable will now only be drawn once. Thanks for the patch!

πŸ‡³πŸ‡±Netherlands arkener

#5 has been applied, thanks for the patch! #7 has been fixed in πŸ› Notice: Undefined property: $last_render Fixed

πŸ‡³πŸ‡±Netherlands arkener

Makes sense to also check on this line if the last_render is actually set. Thanks for the patch!

πŸ‡³πŸ‡±Netherlands arkener

This issue seems to occur after the 9.5 jQuery changes. The FooTable integration seems to run multiple times, after which the FooTable table is completely removed. I've added a fix which will ensure that the FooTable initialization will only run once, which seems to fix this issue.

πŸ‡³πŸ‡±Netherlands arkener

I've been using SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses for some time and I haven't really ran into the issues as mentioned in #4, except for the fact the sniff will only mention the first incorrectly sorted statement. Are you able to provide some examples? PHPStorm's sorting currently corresponds with the sorting used in Slevomat. The sniff provided by @cburschka also corresponds with the sorting used by PHPStorm, except for the logic when it comes to uppercase and lowercase characters. For example, PHPStorm will sort to the following:

use Drupal\car\CarInterface;
use Drupal\Core\Controller\ControllerBase;
use Drupal\door\DoorInterface;

Which will be marked as correct by Slevomat and marked as invalid on the custom sniff.

Production build 0.71.5 2024