1 | <?php |
||
19 | class CitationMeta { |
||
20 | |||
21 | /** |
||
22 | * @var CitationReferencePositionJournal |
||
23 | */ |
||
24 | private $citationReferencePositionJournal = null; |
||
25 | |||
26 | /** |
||
27 | * @var boolean |
||
28 | */ |
||
29 | private $isEnabled = false; |
||
30 | |||
31 | /** |
||
32 | * @since 1.1 |
||
33 | * |
||
34 | * @param CitationReferencePositionJournal $citationReferencePositionJournal |
||
35 | */ |
||
36 | 14 | public function __construct( CitationReferencePositionJournal $citationReferencePositionJournal ) { |
|
39 | |||
40 | /** |
||
41 | * @since 1.1 |
||
42 | * |
||
43 | * @param $isEnabled boolean |
||
44 | */ |
||
45 | 14 | public function setEnabledState( $isEnabled ) { |
|
48 | |||
49 | /** |
||
50 | * @since 1.1 |
||
51 | * |
||
52 | * @param SemanticData $semanticData |
||
53 | * |
||
54 | * @return boolean |
||
55 | */ |
||
56 | 14 | public function addMetaRecordToSemanticData( SemanticData $semanticData ) { |
|
77 | |||
78 | private function tryToCollectCitationFrequency( DIWikiPage $subject ) { |
||
111 | |||
112 | private function addFrequencyRecord( $containerSemanticData, $subject, $citationKey, $count ) { |
||
123 | |||
124 | } |
||
125 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: