Page MenuHomePhabricator

Why are numerous Crypt functions static and called non statically?
Closed, ResolvedPublic

Description

The abstract class Crypt has numerous static functions, getTallyDescriptors, updateTallyContext, updateDbForTallyJob, cleanupDbForTallyJob, but then are called non statically $election->getCrypt()->updateDbForTallyJob( $electionId, $dbw, $data ); etc

Feels like they should be marked as not static... And possibly abstract too? But maybe not on the latter

Event Timeline

Change 711869 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/SecurePoll@master] Make GpgCrypt extend Crypt

https://gerrit.wikimedia.org/r/711869

Change 711869 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Make GpgCrypt extend Crypt

https://gerrit.wikimedia.org/r/711869

Reedy claimed this task.

I think so!