Skip to content

Commit c6678dc

Browse files
[9.x] Fix deprecation warnings in tests (#44992)
* Update CompilesFragments.php * Apply fixes from StyleCI * Update ComponentTest.php * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <[email protected]>
1 parent cfbab90 commit c6678dc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Illuminate/View/Compilers/Concerns/CompilesFragments.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
trait CompilesFragments
66
{
7+
/**
8+
* The last compiled fragment.
9+
*
10+
* @var string
11+
*/
12+
protected $lastFragment;
13+
714
/**
815
* Compile the fragment statements into valid PHP.
916
*

tests/View/ComponentTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public function testResolveDependenciesWithoutContainer()
117117

118118
$component = new class extends Component
119119
{
120+
public $content;
121+
120122
public function __construct($a = null, $b = null)
121123
{
122124
$this->content = $a.$b;

0 commit comments

Comments
 (0)