Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be9b065

Browse files
eerisonJean85ste93cry
authored
Add missing return type hints to the methods of the SentryExtension class (getsentry#563)
* maintenance/add-type-hin-in-sentry-extension * Update CHANGELOG.md Co-authored-by: Alessandro Lai <[email protected]> * Update CHANGELOG.md Co-authored-by: Stefano Arlandini <[email protected]> Co-authored-by: Alessandro Lai <[email protected]> Co-authored-by: Stefano Arlandini <[email protected]>
1 parent d1126b2 commit be9b065

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Add return typehints to the methods of the `SentryExtension` class to prepare for Symfony 6 (#563)
6+
57
## 4.2.3 (2021-09-21)
68

79
- Fix: Test if `TracingStatement` exists before attempting to create the class alias, otherwise it breaks when opcache is enabled. (#552)

src/DependencyInjection/SentryExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ final class SentryExtension extends ConfigurableExtension
4343
/**
4444
* {@inheritdoc}
4545
*/
46-
public function getXsdValidationBasePath()
46+
public function getXsdValidationBasePath(): string
4747
{
4848
return __DIR__ . '/../Resources/config/schema';
4949
}
5050

5151
/**
5252
* {@inheritdoc}
5353
*/
54-
public function getNamespace()
54+
public function getNamespace(): string
5555
{
5656
return 'https://sentry.io/schema/dic/sentry-symfony';
5757
}

0 commit comments

Comments
 (0)