Merge pull request #4686 from annando/no-warn-app

Avoid the warning of an unitialized variable in .htconfig.php
This commit is contained in:
Hypolite Petovan 2018-03-26 20:44:53 -04:00 committed by GitHub
commit 35e18e9e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,8 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
$a = get_app();
if ($this->getOption('v')) { if ($this->getOption('v')) {
$this->out('Executable: ' . $this->executable); $this->out('Executable: ' . $this->executable);
$this->out('Class: ' . __CLASS__); $this->out('Class: ' . __CLASS__);

View File

@ -39,6 +39,8 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
$a = get_app();
if ($this->getOption('v')) { if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__); $this->out('Class: ' . __CLASS__);
$this->out('Arguments: ' . var_export($this->args, true)); $this->out('Arguments: ' . var_export($this->args, true));

View File

@ -39,6 +39,8 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
$a = get_app();
if ($this->getOption('v')) { if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__); $this->out('Class: ' . __CLASS__);
$this->out('Arguments: ' . var_export($this->args, true)); $this->out('Arguments: ' . var_export($this->args, true));

View File

@ -47,6 +47,8 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
$a = get_app();
if ($this->getOption('v')) { if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__); $this->out('Class: ' . __CLASS__);
$this->out('Arguments: ' . var_export($this->args, true)); $this->out('Arguments: ' . var_export($this->args, true));

View File

@ -47,6 +47,8 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
$a = get_app();
if ($this->getOption('v')) { if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__); $this->out('Class: ' . __CLASS__);
$this->out('Arguments: ' . var_export($this->args, true)); $this->out('Arguments: ' . var_export($this->args, true));