Skip to content

Commit

Permalink
Fix PHP 8.3.6 backward incompatible change with WeakRef php/php-src#1…
Browse files Browse the repository at this point in the history
…3612 + php/php-src#13613

Usage of driver throw an error on Election object destruction..
  • Loading branch information
julien-boudry committed Apr 23, 2024
1 parent 5529f3a commit c3fe541
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 38 deletions.
72 changes: 36 additions & 36 deletions Docs/ApiReferences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -317,7 +317,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -346,7 +346,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -375,7 +375,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getLoser (): ?int
* public getObjectVersion (bool $major = false): string
* public getResult (): never
Expand Down Expand Up @@ -405,7 +405,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -434,7 +434,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -462,7 +462,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -492,7 +492,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -524,7 +524,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -557,7 +557,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -588,7 +588,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -623,7 +623,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -658,7 +658,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -692,7 +692,7 @@ _Including above methods from public API_
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public compute (): void
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public getStats (): array
Expand Down Expand Up @@ -720,7 +720,7 @@ _Including above methods from public API_
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public compute (): void
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public getStats (): array
Expand Down Expand Up @@ -750,7 +750,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -781,7 +781,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -816,7 +816,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -845,7 +845,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -875,7 +875,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -905,7 +905,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -934,7 +934,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -967,7 +967,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1004,7 +1004,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1040,7 +1040,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1087,7 +1087,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1121,7 +1121,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1149,7 +1149,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1180,7 +1180,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1211,7 +1211,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1241,7 +1241,7 @@ _Including above methods from public API_
* public static setOption (string $optionName, BackedEnum|Random\Randomizer|array|string|int|float $optionValue): true
* public __construct (CondorcetPHP\Condorcet\Election $mother)
* public __serialize (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getObjectVersion (bool $major = false): string
* public getResult (): CondorcetPHP\Condorcet\Result
* public setElection (CondorcetPHP\Condorcet\Election $election): void
Expand Down Expand Up @@ -1271,7 +1271,7 @@ _Including above methods from public API_
* public __serialize (): array
* public addNewVote (int $key): void
* public current (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getExplicitPairwise (): array
* public getObjectVersion (bool $major = false): string
* public key (): ?int
Expand Down Expand Up @@ -1307,7 +1307,7 @@ _Including above methods from public API_
* public __serialize (): array
* public addNewVote (int $key): void
* public current (): array
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getExplicitPairwise (): array
* public getObjectVersion (bool $major = false): string
* public key (): ?int
Expand Down Expand Up @@ -1419,7 +1419,7 @@ _Including above methods from public API_
* protected static voteHasCandidates (array $voteCandidatesKey, array $combination): bool
* public __construct (int $subsetSize, CondorcetPHP\Condorcet\Election $election)
* public count (): int
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public setElection (CondorcetPHP\Condorcet\Election $election): void
* public sumWeightIfVotesIncludeCandidates (array $candidatesKeys): int
```
Expand Down Expand Up @@ -1761,7 +1761,7 @@ _Including above methods from public API_
* public debugGetCache (): array
* public getCacheSize (): int
* public getContainerSize (): int
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getFirstKey (): int
* public getFullDataSet (): array
* public getObjectVersion (bool $major = false): string
Expand Down Expand Up @@ -1873,7 +1873,7 @@ _Including above methods from public API_
* public debugGetCache (): array
* public getCacheSize (): int
* public getContainerSize (): int
* public getElection (): CondorcetPHP\Condorcet\Election
* public getElection (): ?CondorcetPHP\Condorcet\Election
* public getFirstKey (): int
* public getFullDataSet (): array
* public getObjectVersion (bool $major = false): string
Expand Down
Loading

0 comments on commit c3fe541

Please sign in to comment.