Skip to content

Commit

Permalink
Fix implicitly nullable arguments. (vufind-org#4140)
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala authored Dec 9, 2024
1 parent b245e00 commit 0736db8
Show file tree
Hide file tree
Showing 589 changed files with 1,034 additions and 1,041 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class UserAccountServiceFactory implements FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if ($options !== null) {
throw new \Exception('Unexpected options sent to factory!');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AbstractIlsAndUserActionFactory implements \Laminas\ServiceManager\Factory
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
return new $requestedName(
$container->get(\VuFind\Session\Settings::class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AbstractRelaisActionFactory implements \Laminas\ServiceManager\Factory\Fac
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CommentRecordFactory implements \Laminas\ServiceManager\Factory\FactoryInt
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DeleteRecordCommentFactory implements \Laminas\ServiceManager\Factory\Fact
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/AjaxHandler/DoiLookupFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DoiLookupFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetACSuggestionsFactory implements
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetIlsStatusFactory implements \Laminas\ServiceManager\Factory\FactoryInte
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetItemStatusesFactory implements \Laminas\ServiceManager\Factory\FactoryI
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetRecordCommentsAsHTMLFactory implements \Laminas\ServiceManager\Factory\
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetRecordCoverFactory implements FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
$config
= $container->get(\VuFind\Config\PluginManager::class)->get('config');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetRecordDetailsFactory implements \Laminas\ServiceManager\Factory\Factory
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetRecordRatingFactory implements \Laminas\ServiceManager\Factory\FactoryI
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetRecordTagsFactory implements \Laminas\ServiceManager\Factory\FactoryInt
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetRecordVersionsFactory implements \Laminas\ServiceManager\Factory\Factor
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetResolverLinksFactory implements \Laminas\ServiceManager\Factory\Factory
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetResultCountFactory implements \Laminas\ServiceManager\Factory\FactoryIn
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GetSaveStatusesFactory implements \Laminas\ServiceManager\Factory\FactoryI
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetSearchResultsFactory implements \Laminas\ServiceManager\Factory\Factory
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GetSideFacetsFactory implements \Laminas\ServiceManager\Factory\FactoryInt
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetUserFinesFactory extends AbstractIlsAndUserActionFactory implements Fac
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/AjaxHandler/GetVisDataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GetVisDataFactory implements \Laminas\ServiceManager\Factory\FactoryInterf
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/AjaxHandler/KeepAliveFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class KeepAliveFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/AjaxHandler/RecommendFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RecommendFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class SystemStatusFactory implements \Laminas\ServiceManager\Factory\FactoryInte
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/AjaxHandler/TagRecordFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TagRecordFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/CASFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CASFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ChoiceAuthFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ChoiceAuthFactory implements \Laminas\ServiceManager\Factory\FactoryInterf
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/DatabaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DatabaseFactory implements \Laminas\ServiceManager\Factory\FactoryInterfac
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class EmailAuthenticatorFactory implements \Laminas\ServiceManager\Factory\Facto
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/EmailFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class EmailFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/FacebookFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FacebookFactory implements \Laminas\ServiceManager\Factory\FactoryInterfac
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ILSAuthenticatorFactory implements FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ILSFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ILSFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/LDAPFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LDAPFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/LoginTokenManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class LoginTokenManagerFactory implements \Laminas\ServiceManager\Factory\Factor
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ManagerFactory implements FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/MultiAuthFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MultiAuthFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/SIP2Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SIP2Factory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ShibbolethFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ShibbolethFactory implements \Laminas\ServiceManager\Factory\FactoryInterf
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/SimulatedSSOFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SimulatedSSOFactory implements \Laminas\ServiceManager\Factory\FactoryInte
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Autocomplete/EdsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class EdsFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
return new $requestedName($container->get(\VuFindSearch\Service::class));
}
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Autocomplete/SolrFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SolrFactory implements \Laminas\ServiceManager\Factory\FactoryInterface
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
return new $requestedName(
$container->get(\VuFind\Search\Results\PluginManager::class)
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Autocomplete/SuggesterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class SuggesterFactory implements \Laminas\ServiceManager\Factory\FactoryInterfa
public function __invoke(
ContainerInterface $container,
$requestedName,
array $options = null
?array $options = null
) {
return new $requestedName(
$container->get(\VuFind\Autocomplete\PluginManager::class),
Expand Down
Loading

0 comments on commit 0736db8

Please sign in to comment.