Skip to content

Commit e3eb976

Browse files
committed
fixes Creation of dynamic property on PHP 8.2
1 parent 42a7686 commit e3eb976

File tree

10 files changed

+31
-32
lines changed

10 files changed

+31
-32
lines changed

tests/TestCase/AutolinkTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
* @copyright Copyright © 2010, Mike Cochrane, Nick Pope
2020
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2121
* @package Twitter.Text
22-
* @property Autolink $linker
2322
*/
2423
class AutolinkTest extends TestCase
2524
{
26-
/** @var Autolink $linker */
27-
private $linker;
25+
private Autolink $linker;
2826

2927
protected function setUp(): void
3028
{

tests/TestCase/ConfigurationTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
*/
2323
class ConfigurationTest extends TestCase
2424
{
25-
/**
26-
* @var Configuration
27-
*/
28-
private $config;
25+
private Configuration $config;
2926

3027
/**
3128
* Set up fixtures

tests/TestCase/ConformanceTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@
2525
* @copyright Copyright 2014, Mike Cochrane, Nick Pope, Takashi Nojima
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2727
* @package Twitter.Text
28-
* @property Autolink $linker
29-
* @property Extractor $extractor
30-
* @property HitHighlighter $highlighter
31-
* @property Validator $validator
32-
* @property Parser $parser
3328
*/
3429
class ConformanceTest extends TestCase
3530
{
31+
private Autolink $linker;
32+
33+
private Extractor $extractor;
34+
35+
private HitHighlighter $highlighter;
36+
37+
private Validator $validator;
38+
39+
private Parser $parser;
40+
3641
protected function setUp(): void
3742
{
3843
parent::setUp();

tests/TestCase/ExtractorTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@
2020
* @copyright Copyright © 2010, Mike Cochrane, Nick Pope
2121
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2222
* @package Twitter.Text
23-
* @param Extractor $extractor
2423
*/
2524
class ExtractorTest extends TestCase
2625
{
2726
/**
2827
* A Test Subject
29-
*
30-
* @var Extractor
3128
*/
32-
private $extractor;
29+
private Extractor $extractor;
3330

3431
protected function setUp(): void
3532
{

tests/TestCase/HitHighlighterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
* @copyright Copyright © 2010, Nick Pope
2020
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2121
* @package Twitter.Text
22-
* @property HitHighlighter $highlighter
2322
*/
2423
class HitHighlighterTest extends TestCase
2524
{
25+
private HitHighlighter $highlighter;
26+
2627
protected function setUp(): void
2728
{
2829
parent::setUp();

tests/TestCase/InternalEncodingTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
* @copyright Copyright 2014, Mike Cochrane, Nick Pope, Takashi Nojima
2727
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2828
* @package Twitter.Text
29-
* @property Autolink $linker
30-
* @property Extractor $extractor
31-
* @property HitHighlighter $highlighter
32-
* @property Validator $validator
33-
* @property Parser $parser
3429
*/
3530
class InternalEncodingTest extends TestCase
3631
{
32+
private Autolink $linker;
33+
34+
private Extractor $extractor;
35+
36+
private HitHighlighter $highlighter;
37+
38+
private Validator $validator;
39+
40+
private Parser $parser;
41+
3742
protected function setUp(): void
3843
{
3944
parent::setUp();

tests/TestCase/ParseResultsTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
*/
2323
class ParseResultsTest extends TestCase
2424
{
25-
/**
26-
* @var ParseResults
27-
*/
28-
private $results;
25+
private ParseResults $results;
2926

3027
/**
3128
* Set up fixtures

tests/TestCase/ParserTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
*/
2424
class ParserTest extends TestCase
2525
{
26-
/**
27-
* @var Parser
28-
*/
29-
private $parser;
26+
private Parser $parser;
3027

3128
/**
3229
* Set up fixtures

tests/TestCase/TldConformanceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
* @copyright Copyright 2017, Takashi Nojima
2121
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2222
* @package Twitter.Text
23-
* @property Extractor $extractor
2423
*/
2524
class TldConformanceTest extends TestCase
2625
{
26+
private Extractor $extractor;
27+
2728
protected function setUp(): void
2829
{
2930
parent::setUp();

tests/TestCase/ValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
* @copyright Copyright © 2010, Nick Pope
2121
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
2222
* @package Twitter.Text
23-
* @property Validator $validator
2423
*/
2524
class ValidatorTest extends TestCase
2625
{
26+
private Validator $validator;
27+
2728
protected function setUp(): void
2829
{
2930
parent::setUp();

0 commit comments

Comments
 (0)