diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-05-26 09:29:13 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-05-26 09:44:25 +0100 |
| commit | 9ecabc6aa3095099058228aa70b9a0363599048d (patch) | |
| tree | 21a1eec2746ba6edb3d3a187ee31e13b28bab38c /app/Report | |
| parent | 43e7e97ace939b5136597bb51e4493fec0c1f88a (diff) | |
| download | webtrees-9ecabc6aa3095099058228aa70b9a0363599048d.tar.gz webtrees-9ecabc6aa3095099058228aa70b9a0363599048d.tar.bz2 webtrees-9ecabc6aa3095099058228aa70b9a0363599048d.zip | |
Make Fact objects immutable. Remove setTag()
Diffstat (limited to 'app/Report')
| -rw-r--r-- | app/Report/ReportParserGenerate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php index b6a5211b0b..32e51f401c 100644 --- a/app/Report/ReportParserGenerate.php +++ b/app/Report/ReportParserGenerate.php @@ -1334,13 +1334,13 @@ class ReportParserGenerate extends ReportParserBase $this->repeats = []; $nonfacts = explode(',', $tag); foreach ($facts as $fact) { - if (!in_array($fact->getTag(), $nonfacts, true)) { + if (!in_array($fact->tag(), $nonfacts, true)) { $this->repeats[] = $fact->gedcom(); } } } else { foreach ($record->facts() as $fact) { - if (($fact->isPendingAddition() || $fact->isPendingDeletion()) && $fact->getTag() !== 'CHAN') { + if (($fact->isPendingAddition() || $fact->isPendingDeletion()) && $fact->tag() !== 'CHAN') { $this->repeats[] = $fact->gedcom(); } } |
