Skip to content

Commit

Permalink
5.1 update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyFoxvn committed Sep 29, 2023
1 parent bcbcb42 commit 258d1f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
$this->output = $output;
$this->cacheDir = $this->getKernel()->getCacheDir().'/propel';

if ($input->hasArgument('bundle') && '@' === substr($input->getArgument('bundle'), 0, 1)) {
if ($input->hasArgument('bundle') && !empty($input->getArgument('bundle')) && '@' === substr($input->getArgument('bundle'), 0, 1)) {
$this->bundle = $this
->getContainer()
->get('kernel')
Expand Down
2 changes: 1 addition & 1 deletion Command/BundleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function getBundle(InputInterface $input, OutputInterface $output): Bu
->getContainer()
->get('kernel');

if ($input->hasArgument('bundle') && '@' === substr($input->getArgument('bundle'), 0, 1)) {
if ($input->hasArgument('bundle') && !empty($input->getArgument('bundle')) && '@' === substr($input->getArgument('bundle'), 0, 1)) {
return $kernel->getBundle(substr($input->getArgument('bundle'), 1));
}

Expand Down
5 changes: 5 additions & 0 deletions Tests/Fixtures/Model/Map/BookTableMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class BookTableMap extends TableMap
*/
const TABLE_NAME = 'book';

/**
* The PHP name of this class (PascalCase)
*/
const TABLE_PHP_NAME = 'Book';

/**
* The related Propel class for this table
*/
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require": {
"php": ">=7.4",
"propel/propel": "2.0.0-beta2",
"propel/propel": "2.0.0-beta2||2.0.0-beta3",
"symfony/console": "^5.0||^6.0",
"symfony/dependency-injection": "^5.0||^6.0",
"symfony/framework-bundle": "^5.0||^6.0",
Expand Down

0 comments on commit 258d1f7

Please sign in to comment.