Skip to content

Commit

Permalink
Use return types instead of type hints in DI factory interfaces
Browse files Browse the repository at this point in the history
This is due to the deprecation in the nette/di package introduced
in the version 3.1.0.

nette/di@34f01fe

remp/crm#2692

(cherry picked from commit bda2cafec600ae83598ab2d05b127ebc9f153ba7)
  • Loading branch information
rootpd committed Dec 19, 2022
1 parent e755dfc commit 90e10b7
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 22 deletions.
3 changes: 1 addition & 2 deletions src/Components/FrontendMenu/FrontendMenuFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface FrontendMenuFactoryInterface
{
/** @return FrontendMenu */
public function create();
public function create(): FrontendMenu;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface GoogleBarGraphControlFactoryInterface
{
/** @return GoogleBarGraph */
public function create();
public function create(): GoogleBarGraph;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface GoogleBarGraphGroupControlFactoryInterface
{
/** @return GoogleBarGraphGroup */
public function create();
public function create(): GoogleBarGraphGroup;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface GoogleLineGraphControlFactoryInterface
{
/** @return GoogleLineGraph */
public function create();
public function create(): GoogleLineGraph;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface GoogleLineGraphGroupControlFactoryInterface
{
/** @return GoogleLineGraphGroup */
public function create();
public function create(): GoogleBarGraphGroup;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface GoogleSankeyGraphGroupControlFactoryInterface
{
/** @return GoogleSankeyGraphGroup */
public function create();
public function create(): GoogleSankeyGraphGroup;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface InlineBarGraphControlFactoryInterface
{
/** @return InlineBarGraph */
public function create();
public function create(): InlineBarGraph;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface SmallBarGraphControlFactoryInterface
{
/** @return SmallBarGraph */
public function create();
public function create(): SmallBarGraph;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface SimpleWidgetFactoryInterface
{
/** @return SimpleWidget */
public function create();
public function create(): SimpleWidget;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface SingleStatWidgetFactoryInterface
{
/** @return SingleStatWidget */
public function create();
public function create(): SingleStatWidget;
}
3 changes: 1 addition & 2 deletions src/Models/Snippet/Control/SnippetFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

interface SnippetFactory
{
/** @return Snippet */
public function create();
public function create(): Snippet;
}

0 comments on commit 90e10b7

Please sign in to comment.