Commit 1d246530 authored by Alex Pott's avatar Alex Pott Committed by Tim Rohaly
Browse files

Issue #3249372 by mrweiner, alexpott, TR, AardWolf: PHP 8.1: Deprecated...

Issue #3249372 by mrweiner, alexpott, TR, AardWolf: PHP 8.1:  Deprecated function: Return type of Drupal\entity\QueryAccess\ConditionGroup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used
parent 10404929
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ final class ConditionGroup implements \Countable, RefinableCacheableDependencyIn
  /**
   * {@inheritdoc}
   */
  public function count() {
  public function count(): int {
    return count($this->conditions);
  }

+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ class EntityLocalTaskTest extends BrowserTestBase {

    $entity = EnhancedEntity::create([
      'type' => 'default',
      'name' => 'Enhanced Entity test'
    ]);
    $entity->save();
    $this->viewPath = $entity->toUrl()->toString();
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class RevisionBasicUITest extends KernelTestBase {
    $this->installEntitySchema('user');
    $this->installEntitySchema('entity_test_enhanced');
    $this->installSchema('system', 'sequences');
    $this->installConfig(['system']);
    $this->installConfig(['system', 'user']);

    $this->container->get('router.builder')->rebuild();