Skip to content

Commit

Permalink
Merge pull request #23 from peter-gribanov/DependencyInjectionExtension
Browse files Browse the repository at this point in the history
GpsLabPaginationBundle::$extension can be false. Correct init GpsLabPaginationExtension.
  • Loading branch information
peter-gribanov authored Oct 31, 2019
2 parents 7344501 + 6d693c1 commit 32137b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GpsLabPaginationBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GpsLabPaginationBundle extends Bundle
*/
public function getContainerExtension()
{
if ($this->extension === null) {
if (!($this->extension instanceof GpsLabPaginationExtension)) {
$this->extension = new GpsLabPaginationExtension();
}

Expand Down

0 comments on commit 32137b4

Please sign in to comment.