-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate phpdoc annotations in favor of native PHP attributes
- Loading branch information
Showing
7 changed files
with
76 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/KdybyTests/Autowired/DeprecationsFixtures/AnnotationPresenter.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace KdybyTests\Autowired\DeprecationsFixtures; | ||
|
||
use Kdyby; | ||
use Nette; | ||
|
||
|
||
class AnnotationPresenter extends Nette\Application\UI\Presenter | ||
{ | ||
|
||
use Kdyby\Autowired\AutowireProperties; | ||
|
||
/** | ||
* @autowire | ||
*/ | ||
public SampleService $typedService; | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
tests/KdybyTests/Autowired/DeprecationsFixtures/SampleService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace KdybyTests\Autowired\DeprecationsFixtures; | ||
|
||
final class SampleService | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extensions: | ||
autowired: Kdyby\Autowired\DI\AutowiredExtension | ||
|
||
autowired: | ||
cacheStorage: KdybyTests\TestStorage | ||
|
||
services: | ||
- KdybyTests\Autowired\DeprecationsFixtures\SampleService |