Skip to content

Commit

Permalink
Fix some errors after updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Feb 10, 2023
1 parent 9d7a71f commit 4d2c90c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
12 changes: 8 additions & 4 deletions src/Parser/ConfsTech/ConferenceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ public function __construct(
public function __invoke(array $conference) : Cfp
{
$cfp = new Cfp();
$cfp->location = $conference['city'];
if (isset($conference['city'])) {
$cfp->location = $conference['city'];
}

$geolocation = $this->geolocation->getLocationForAddress(
$conference['country'] . ', ' . $cfp->location
);
if (isset($conference['country'])) {
$geolocation = $this->geolocation->getLocationForAddress(
$conference['country'] . ', ' . $cfp->location
);
}

$cfp->latitude = $geolocation->getLatitude();
$cfp->longitude = $geolocation->getLongitude();
Expand Down
15 changes: 7 additions & 8 deletions src/Writer/NullOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NullOutput implements OutputInterface
*
* @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
*/
public function isDebug()
public function isDebug(): bool
{
return false;
}
Expand All @@ -60,7 +60,7 @@ public function setFormatter(OutputFormatterInterface $formatter)
*
* @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
*/
public function isVerbose()
public function isVerbose(): bool
{
return false;
}
Expand All @@ -70,7 +70,7 @@ public function isVerbose()
*
* @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
*/
public function isVeryVerbose()
public function isVeryVerbose(): bool
{
return false;
}
Expand Down Expand Up @@ -125,7 +125,7 @@ public function setVerbosity($level)
* @return int The current level of verbosity (one of the VERBOSITY constants)
* @api
*/
public function getVerbosity()
public function getVerbosity(): int
{
return 0;
}
Expand All @@ -148,18 +148,17 @@ public function setDecorated($decorated)
* @return bool true if the output will decorate messages, false otherwise
* @api
*/
public function isDecorated()
public function isDecorated(): bool
{
return 0;
}

/**
* Returns current output formatter instance.
*
* @return OutputFormatterInterface
* @api
*/
public function getFormatter()
public function getFormatter(): OutputFormatterInterface
{
// TODO: Implement getFormatter() method.
}
Expand All @@ -169,7 +168,7 @@ public function getFormatter()
*
* @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
*/
public function isQuiet()
public function isQuiet(): bool
{
// TODO: Implement isQuiet() method.
}
Expand Down

0 comments on commit 4d2c90c

Please sign in to comment.