Skip to content

Commit

Permalink
fix string
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Jul 26, 2024
1 parent ff41bab commit 441cace
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/CommandGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter command class name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext(
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/DatabaseEventGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter database event class name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext('Please enter valid database event class name!', 'console')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter entity name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext('Please enter valid entity name!', 'console')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/MiddlewareGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext(
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/ModuleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter module class name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext(
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/SchedulerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter scheduler class name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext(
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/SeederGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function askClassName(InputInterface $input, OutputInterface $output)
$this->translateContext('Please enter seeder class name', 'console'),
null,
function ($name) {
$definitions = $this->filterNames($name);
$definitions = is_string($name) ? $this->filterNames($name) : null;
if ($definitions === null) {
throw new InteractiveArgumentException(
$this->translateContext(
Expand Down

0 comments on commit 441cace

Please sign in to comment.