Open vincent-gao opened 1 year ago
Hey @dannypaz ,
It raises a deprecation notice for us.
Deprecated function: Return type of QueryResult::current() should either be compatible with Iterator::current(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 946 of /app/vendor/dannypaz/phpee/soapclient/SforceBaseClient.php) #0 /app/docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'Return type of ...', '/app/vendor/dan...', 985) #1 /app/vendor/dannypaz/phpee/soapclient/SforceBaseClient.php(946): _drupal_error_handler(8192, 'Return type of ...', '/app/vendor/dan...', 985) #2 /app/vendor/dannypaz/phpee/soapclient/SforceEnterpriseClient.php(27): require_once('/app/vendor/dan...') #3 /app/docroot/modules/custom/vpsc_lobbyists_migration/vpsc_lobbyists_migration.module(15): require_once('/app/vendor/dan...') #4 /app/docroot/core/lib/Drupal/Core/Extension/Extension.php(147): include_once('/app/docroot/mo...') #5 /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(128): Drupal\\Core\\Extension\\Extension->load() #6 /app/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(141): Drupal\\Core\\Extension\\ModuleHandler->load('vpsc_lobbyists_...') #7 /app/docroot/core/lib/Drupal/Core/DrupalKernel.php(587): Drupal\\Core\\Extension\\ModuleHandler->loadAll() #8 /app/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(46): Drupal\\Core\\DrupalKernel->preHandle(Object(Symfony\\Component\\HttpFoundation\\Request)) #9 /app/vendor/asm89/stack-cors/src/Asm89/Stack/Cors.php(49): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #10 /app/docroot/modules/contrib/shield/src/ShieldMiddleware.php(270): Asm89\\Stack\\Cors->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #11 /app/docroot/modules/contrib/shield/src/ShieldMiddleware.php(137): Drupal\\shield\\ShieldMiddleware->bypass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #12 /app/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\shield\\ShieldMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #13 /app/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #14 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #15 /app/docroot/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true) #16 /app/docroot/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request)) #17 {main}.
I think it is because of PHP 8.1 upgrade.
0001-FIX-PHP-8.1-warning-message.patch The above patch helped me.
Hey @dannypaz ,
It raises a deprecation notice for us.
I think it is because of PHP 8.1 upgrade.