1 | <?php |
||||
2 | |||||
3 | namespace Raystech\StarterKit\Traits; |
||||
4 | |||||
5 | trait CustomSlugifyTrait |
||||
6 | { |
||||
7 | public function setCustomHeaders(array $customHeaders): self |
||||
8 | { |
||||
9 | $this->setCustomProperty('custom_headers', $customHeaders); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
10 | |||||
11 | return $this; |
||||
12 | } |
||||
13 | |||||
14 | public function getCustomHeaders(): array |
||||
15 | { |
||||
16 | return $this->getCustomProperty('custom_headers', []); |
||||
0 ignored issues
–
show
It seems like
getCustomProperty() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
17 | } |
||||
18 | } |
||||
19 |