Comments (8)
Hi,
Please confirm that:
- You using Condorcet 0.14, or specify the version
- Your PHP version is 5.5 or older
Else, can you give me more contextuals elements ?
from condorcet.
J'essaie de l'intégrer dur un cakephp, condorcet v0.14. Php 5.3 sur mon serveur local
Envoyé à partir de mon smartphone Sony Xperia™
---- Boudry Julien a écrit ----
Hi,
Please confirm that:
You using Condorcet 0.14, or specify the versionYour PHP version is 5.5 or older
Else, can you give me more contextuals elements ?
—
Reply to this email directly or view it on GitHub.
from condorcet.
Condorcet supporte PHP 5.5 et plus, ce qui pourrait-être une explication même si cette erreur de syntax est à priori surprenante.
J'avoue ne jamais avoir poussé les tests d'intégration aux Frameworks, mais la façon dont sont géré les espaces de nom et Composer fait que ça devrait aller. Du moins l'erreur rapportée ne semble pas indiquer de problème de ce coté là.
Tiens moi au courant :)
from condorcet.
C'est très probablement la version PHP, en effet.
Il n'y a pas de Trait dans la 0.14, ce sera pour la 0.15 qui comportera de très importants changements internes* (mais peu d'impacts sur l'API existante).
Par contre oui, je ne me suis pas privé pour utiliser des fonctions et comportements de PHP 5.4 et 5.5 ; même si je ne les ai pas recensé.
'*' : Les vote et Candidat seront des objets, que l'on pourra faire participer à plusieurs élections simultanées ; et qui auront leur propre historique (possibilité de modification de vote, de nom etc....).
Voir la branche Testing, mais ce n'est absolument pas documenté à cette heure.
from condorcet.
D'accord. Je vais tester ça et je te tiendrai au courant. Merci beaucoup
Envoyé à partir de mon smartphone Sony Xperia™
---- Boudry Julien a écrit ----
C'est très probablement la version PHP, en effet.
Il n'y a pas de Trait dans la 0.14, ce sera pour la 0.15 qui comportera de très importants changements interne* (mais peu d'impacts sur l'API existante).
Par contre oui, je ne me suis pas privé pour utiliser des fonctions et comportement de PHP 5.4 et 5.5 ; même si je ne les ai pas recensé.: Les vote et Candidat seront des objets, que l'on pourra faire participer à plusieurs élections simultanées ; et qui auront leur propre historique (possibilité de modification de vote, de nom etc....). Voir la branche Testing, mais ce n'est absolument pas documenté à cette heure.
—
Reply to this email directly or view it on GitHub.
from condorcet.
Trouvé dans la doc PHP :
<?php
function getArray() {
return array(1, 2, 3);
}
// Depuis PHP 5.4
$secondElement = getArray()[1];
// Avant PHP 5.4
$tmp = getArray();
$secondElement = $tmp[1];
// ou
list(, $secondElement) = getArray();
?>
from condorcet.
Je vais essayer merci beaucoup
Envoyé à partir de mon smartphone Sony Xperia™
---- Boudry Julien a écrit ----
Trouvé dans la doc PHP :
—
Reply to this email directly or view it on GitHub.
from condorcet.
Poir la suite, je t'invite à créer un de nouvelles issues que te taguerai en "question" pour discussion. Voir l'intégration de mon projet et des testeurs m'intéresse !
Tu peux voir mon propre service : http://www.condorcet-vote.org pour un example d'intégration vraiment très poussée de la solution. Le code du service exploitant vraiment très en profondeur les possibilités de la librairie, non pas juste pour calculer les votes mais aussi pour les gérer et exploiter le cache sur les résultats.
Eventuellement, je pourrai te partager une class intéressantes pour wrapper ça, que j'ai conçu pour l'occasion.
from condorcet.
Related Issues (20)
- Console: Check false or null php.ini memory_limit on large election HOT 1
- PHP Fatal error HOT 7
- Largest remainder methods: Half votes rounded down, party receiving less seats HOT 5
- Unserialize crash with new && empty election object
- Implement VoteFaire Ranking (Popularity)?
- [Public API Reform] Pairwise key 'null' to 'tie'
- [Public API Reform] Split $election->getResult methods, for filtering by tags
- [Public API Reform] Is it useful to edit candidate name with history. Should be immutable?
- [Public API Reform] Do a really independant Pairwise object HOT 5
- [Command Line] Error importing CondorcetFormat: Argument #1 ($callBack) must be of type Closure HOT 6
- $election->getResult() results in error when there are 0 votes HOT 3
- Investigate about removeVote feature and Pairwise integrity
- Allow either commas or semicolons in Condorcet Election Format HOT 11
- Different results when running different numbers of methods HOT 4
- Problem in Schulze_Proportional_Prefilter in Experimental/Schulze-STV branch HOT 5
- [Public API Reform] Remove static setters setMaxParseIteration / setMaxVoteNumber HOT 1
- Tests: parallel mod (paratest, pest --parallel) fail erratically and inconsistently (and worse with JIT) HOT 3
- [Experimental Schulze-STV Branch] Wrong test results from various methods with Explicit Ranking HOT 14
- New Method: Smith Set HOT 1
- New method: STAR Voting HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from condorcet.