Problem/Motivation

I get this error

Deprecated function: Creation of dynamic property Drupal\filebrowser\FilebrowserUninstallValidator::$entityQuery is deprecated in Drupal\filebrowser\FilebrowserUninstallValidator->__construct() (line 33 of modules/contrib/filebrowser/src/FilebrowserUninstallValidator.php).
Drupal\filebrowser\FilebrowserUninstallValidator->__construct(Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'filebrowser.uninstall.validator') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('filebrowser.uninstall.validator', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'drupal.proxy_original_service.module_installer') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('drupal.proxy_original_service.module_installer') (Line: 64)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->lazyLoadItself() (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 502)
Drupal\system\Form\ModulesListForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 182)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
CommentFileSizeAuthor
#11 filebrowser-3393684.patch1.97 KBpaulrad
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

trickfun created an issue. See original summary.

clivesj’s picture

Status: Active » Postponed (maintainer needs more info)

Can you give me the steps to reproduce this? I can not.
Thanks

trickfun’s picture

New Drupal 10 installation.
When i enable any module i get this error.

Thank you

clivesj’s picture

Status: Postponed (maintainer needs more info) » Active

I get it now: This is due PHP >=8.2
I will come back with a patch shortly.

Shreya_th made their first commit to this issue’s fork.

shreya_th’s picture

Status: Active » Needs review

Hi @clivesj,
I have fixed this issue and also created MR for this issue i.e. "Deprecated function: Creation of dynamic property". Kindly review the changes .

Thank you!

viren18febs’s picture

Hi @trickfun
#6 MR is fixed the issue for me, please review.

paulrad’s picture

Status: Needs review » Reviewed & tested by the community

Tested locally and can confirm that the issue is resolved by @Shreya_th's merge request.
Moving to RTBC

trickfun’s picture

Can you provide a patch?
Thank you

paulrad’s picture

StatusFileSize
new1.97 KB

Sure, @trickfun. Feel free to use it.

trickfun’s picture

It works.
thank you

  • clivesj committed e04699f5 on 3.1.x authored by Shreya_th
    Issue #3393684 by Shreya_th: Deprecated function: Creation of dynamic...
clivesj’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.