Commit 1001cbba authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 787529: Use |use 5.10.1| everywhere

r=wicked a=LpSolit
parent 88157fb0
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla; package Bugzilla;
use 5.10.1;
use strict; use strict;
# We want any compile errors to get to the browser, if possible. # We want any compile errors to get to the browser, if possible.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Attachment; package Bugzilla::Attachment;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::Attachment - Bugzilla attachment class. Bugzilla::Attachment - Bugzilla attachment class.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Attachment::PatchReader; package Bugzilla::Attachment::PatchReader;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Attachment; use Bugzilla::Attachment;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth; package Bugzilla::Auth;
use 5.10.1;
use strict; use strict;
use fields qw( use fields qw(
_info_getter _info_getter
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth::Login; package Bugzilla::Auth::Login;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::CGI; package Bugzilla::Auth::Login::CGI;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 1; use constant user_can_create_account => 1;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Cookie; package Bugzilla::Auth::Login::Cookie;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Env; package Bugzilla::Auth::Login::Env;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Stack; package Bugzilla::Auth::Login::Stack;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use fields qw( use fields qw(
_stack _stack
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Persist::Cookie; package Bugzilla::Auth::Persist::Cookie;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth::Verify; package Bugzilla::Auth::Verify;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::DB; package Bugzilla::Auth::Verify::DB;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::LDAP; package Bugzilla::Auth::Verify::LDAP;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
ldap ldap
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::RADIUS; package Bugzilla::Auth::Verify::RADIUS;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::Stack; package Bugzilla::Auth::Verify::Stack;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
_stack _stack
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Bug; package Bugzilla::Bug;
use 5.10.1;
use strict; use strict;
use Bugzilla::Attachment; use Bugzilla::Attachment;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::BugMail; package Bugzilla::BugMail;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl; package Bugzilla::BugUrl;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Bugzilla; package Bugzilla::BugUrl::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Bugzilla::Local; package Bugzilla::BugUrl::Bugzilla::Local;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl::Bugzilla); use base qw(Bugzilla::BugUrl::Bugzilla);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Debian; package Bugzilla::BugUrl::Debian;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::GitHub; package Bugzilla::BugUrl::GitHub;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Google; package Bugzilla::BugUrl::Google;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::JIRA; package Bugzilla::BugUrl::JIRA;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Launchpad; package Bugzilla::BugUrl::Launchpad;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::MantisBT; package Bugzilla::BugUrl::MantisBT;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::SourceForge; package Bugzilla::BugUrl::SourceForge;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Trac; package Bugzilla::BugUrl::Trac;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::CGI; package Bugzilla::CGI;
use 5.10.1;
use strict; use strict;
use base qw(CGI); use base qw(CGI);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
# This module represents a chart. # This module represents a chart.
# #
# Note that it is perfectly legal for the 'lines' member variable of this # Note that it is perfectly legal for the 'lines' member variable of this
...@@ -15,6 +13,9 @@ use strict; ...@@ -15,6 +13,9 @@ use strict;
# the same points. # the same points.
package Bugzilla::Chart; package Bugzilla::Chart;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Series; use Bugzilla::Series;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Classification; package Bugzilla::Classification;
use 5.10.1;
use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Field; use Bugzilla::Field;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Comment; package Bugzilla::Comment;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Attachment; use Bugzilla::Attachment;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Component; package Bugzilla::Component;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config; package Bugzilla::Config;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Admin; package Bugzilla::Config::Admin;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Config::Advanced; package Bugzilla::Config::Advanced;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Attachment; package Bugzilla::Config::Attachment;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Auth; package Bugzilla::Config::Auth;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::BugChange; package Bugzilla::Config::BugChange;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::BugFields; package Bugzilla::Config::BugFields;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Common; package Bugzilla::Config::Common;
use 5.10.1;
use strict; use strict;
use Email::Address; use Email::Address;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Core; package Bugzilla::Config::Core;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::DependencyGraph; package Bugzilla::Config::DependencyGraph;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Config::General; package Bugzilla::Config::General;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
our $sortkey = 150; our $sortkey = 150;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::GroupSecurity; package Bugzilla::Config::GroupSecurity;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::LDAP; package Bugzilla::Config::LDAP;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::MTA; package Bugzilla::Config::MTA;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::PatchViewer; package Bugzilla::Config::PatchViewer;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Query; package Bugzilla::Config::Query;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::RADIUS; package Bugzilla::Config::RADIUS;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::ShadowDB; package Bugzilla::Config::ShadowDB;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::UserMatch; package Bugzilla::Config::UserMatch;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Constants; package Bugzilla::Constants;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
# For bz_locations # For bz_locations
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::DB; package Bugzilla::DB;
use 5.10.1;
use strict; use strict;
use DBI; use DBI;
......
...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
=cut =cut
package Bugzilla::DB::Mysql; package Bugzilla::DB::Mysql;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
=cut =cut
package Bugzilla::DB::Oracle; package Bugzilla::DB::Oracle;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use DBD::Oracle; use DBD::Oracle;
...@@ -706,6 +709,10 @@ sub _get_create_trigger_ddl { ...@@ -706,6 +709,10 @@ sub _get_create_trigger_ddl {
############################################################################ ############################################################################
package Bugzilla::DB::Oracle::st; package Bugzilla::DB::Oracle::st;
use 5.10.1;
use strict;
use base qw(DBI::st); use base qw(DBI::st);
sub fetchrow_arrayref { sub fetchrow_arrayref {
......
...@@ -21,6 +21,7 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -21,6 +21,7 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
package Bugzilla::DB::Pg; package Bugzilla::DB::Pg;
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -15,7 +15,9 @@ package Bugzilla::DB::Schema; ...@@ -15,7 +15,9 @@ package Bugzilla::DB::Schema;
# #
########################################################################### ###########################################################################
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Hook; use Bugzilla::Hook;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Mysql; ...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Mysql;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
......
...@@ -13,6 +13,7 @@ package Bugzilla::DB::Schema::Oracle; ...@@ -13,6 +13,7 @@ package Bugzilla::DB::Schema::Oracle;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
......
...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Pg; ...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Pg;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
use Storable qw(dclone); use Storable qw(dclone);
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::DB::Schema::Sqlite; package Bugzilla::DB::Schema::Sqlite;
use 5.10.1;
use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::DB::Sqlite; package Bugzilla::DB::Sqlite;
use 5.10.1;
use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::Error; package Bugzilla::Error;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
@Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError); @Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension; package Bugzilla::Extension;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -57,6 +57,7 @@ in addition to what is documented here. ...@@ -57,6 +57,7 @@ in addition to what is documented here.
package Bugzilla::Field; package Bugzilla::Field;
use 5.10.1;
use strict; use strict;
use base qw(Exporter Bugzilla::Object); use base qw(Exporter Bugzilla::Object);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Field::Choice; package Bugzilla::Field::Choice;
use 5.10.1;
use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Config qw(SetParam write_params); use Bugzilla::Config qw(SetParam write_params);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Field::ChoiceInterface; package Bugzilla::Field::ChoiceInterface;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Flag; package Bugzilla::Flag;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::Flag - A module to deal with Bugzilla flag values. Bugzilla::Flag - A module to deal with Bugzilla flag values.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::FlagType; package Bugzilla::FlagType;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::FlagType - A module to deal with Bugzilla flag types. Bugzilla::FlagType - A module to deal with Bugzilla flag types.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Group; package Bugzilla::Group;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Hook; package Bugzilla::Hook;
use 5.10.1;
use strict; use strict;
sub process { sub process {
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install; ...@@ -15,6 +15,7 @@ package Bugzilla::Install;
# make those assumptions, then it should go into one of the # make those assumptions, then it should go into one of the
# packages under the Bugzilla::Install namespace. # packages under the Bugzilla::Install namespace.
use 5.10.1;
use strict; use strict;
use Bugzilla::Component; use Bugzilla::Component;
...@@ -25,7 +26,7 @@ use Bugzilla::Group; ...@@ -25,7 +26,7 @@ use Bugzilla::Group;
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::User::Setting; use Bugzilla::User::Setting;
use Bugzilla::Util qw(get_text say); use Bugzilla::Util qw(get_text);
use Bugzilla::Version; use Bugzilla::Version;
use constant STATUS_WORKFLOW => ( use constant STATUS_WORKFLOW => (
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Install::CPAN; package Bugzilla::Install::CPAN;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT = qw( our @EXPORT = qw(
BZ_LIB BZ_LIB
......
...@@ -10,6 +10,7 @@ package Bugzilla::Install::DB; ...@@ -10,6 +10,7 @@ package Bugzilla::Install::DB;
# NOTE: This package may "use" any modules that it likes, # NOTE: This package may "use" any modules that it likes,
# localconfig is available, and params are up to date. # localconfig is available, and params are up to date.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install::Filesystem; ...@@ -15,6 +15,7 @@ package Bugzilla::Install::Filesystem;
# * Files do not have the correct permissions. # * Files do not have the correct permissions.
# * The database does not exist. # * The database does not exist.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install::Localconfig; ...@@ -15,6 +15,7 @@ package Bugzilla::Install::Localconfig;
# * Files do not have the correct permissions # * Files do not have the correct permissions
# * The database is not up to date # * The database is not up to date
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -13,6 +13,7 @@ package Bugzilla::Install::Requirements; ...@@ -13,6 +13,7 @@ package Bugzilla::Install::Requirements;
# Subroutines may "require" and "import" from modules, but they # Subroutines may "require" and "import" from modules, but they
# MUST NOT "use." # MUST NOT "use."
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -11,6 +11,7 @@ package Bugzilla::Install::Util; ...@@ -11,6 +11,7 @@ package Bugzilla::Install::Util;
# module may require *only* Bugzilla::Constants and built-in # module may require *only* Bugzilla::Constants and built-in
# perl modules. # perl modules.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Job::Mailer; package Bugzilla::Job::Mailer;
use 5.10.1;
use strict; use strict;
use Bugzilla::Mailer; use Bugzilla::Mailer;
BEGIN { eval "use base qw(TheSchwartz::Worker)"; } BEGIN { eval "use base qw(TheSchwartz::Worker)"; }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::JobQueue; package Bugzilla::JobQueue;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
package Bugzilla::JobQueue::Runner; package Bugzilla::JobQueue::Runner;
use 5.10.1;
use strict; use strict;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use File::Basename; use File::Basename;
use File::Copy; use File::Copy;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Keyword; package Bugzilla::Keyword;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Mailer; package Bugzilla::Mailer;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Migrate; package Bugzilla::Migrate;
use 5.10.1;
use strict; use strict;
use Bugzilla::Attachment; use Bugzilla::Attachment;
...@@ -16,7 +18,7 @@ use Bugzilla::Error; ...@@ -16,7 +18,7 @@ use Bugzilla::Error;
use Bugzilla::Install::Requirements (); use Bugzilla::Install::Requirements ();
use Bugzilla::Install::Util qw(indicate_progress); use Bugzilla::Install::Util qw(indicate_progress);
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::Util qw(get_text trim generate_random_password say); use Bugzilla::Util qw(get_text trim generate_random_password);
use Bugzilla::User (); use Bugzilla::User ();
use Bugzilla::Status (); use Bugzilla::Status ();
use Bugzilla::Version; use Bugzilla::Version;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Migrate::Gnats; package Bugzilla::Migrate::Gnats;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Migrate); use base qw(Bugzilla::Migrate);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Milestone; package Bugzilla::Milestone;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Object; package Bugzilla::Object;
use 5.10.1;
use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Hook; use Bugzilla::Hook;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Product; package Bugzilla::Product;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::RNG; package Bugzilla::RNG;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
use Bugzilla::Constants qw(ON_WINDOWS); use Bugzilla::Constants qw(ON_WINDOWS);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Report; package Bugzilla::Report;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::CGI; use Bugzilla::CGI;
......
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search;
use 5.10.1;
use strict; use strict;
package Bugzilla::Search;
use base qw(Exporter); use base qw(Exporter);
@Bugzilla::Search::EXPORT = qw( @Bugzilla::Search::EXPORT = qw(
IsValidQueryType IsValidQueryType
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Clause; package Bugzilla::Search::Clause;
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Condition; package Bugzilla::Search::Condition;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT_OK = qw(condition); our @EXPORT_OK = qw(condition);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
package Bugzilla::Search::Quicksearch; package Bugzilla::Search::Quicksearch;
# Make it harder for us to do dangerous things in Perl. use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Recent; package Bugzilla::Search::Recent;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Search::Saved; package Bugzilla::Search::Saved;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::CGI; use Bugzilla::CGI;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Send::Sendmail; package Bugzilla::Send::Sendmail;
use 5.10.1;
use strict; use strict;
use base qw(Email::Send::Sendmail); use base qw(Email::Send::Sendmail);
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
# This module implements a series - a set of data to be plotted on a chart. # This module implements a series - a set of data to be plotted on a chart.
# #
# This Series is in the database if and only if self->{'series_id'} is defined. # This Series is in the database if and only if self->{'series_id'} is defined.
...@@ -16,6 +14,9 @@ use strict; ...@@ -16,6 +14,9 @@ use strict;
package Bugzilla::Series; package Bugzilla::Series;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Status; package Bugzilla::Status;
use Bugzilla::Error; use 5.10.1;
use strict;
# This subclasses Bugzilla::Field::Choice instead of implementing # This subclasses Bugzilla::Field::Choice instead of implementing
# ChoiceInterface, because a bug status literally is a special type # ChoiceInterface, because a bug status literally is a special type
# of Field::Choice, not just an object that happens to have the same # of Field::Choice, not just an object that happens to have the same
...@@ -23,6 +23,8 @@ use base qw(Bugzilla::Field::Choice Exporter); ...@@ -23,6 +23,8 @@ use base qw(Bugzilla::Field::Choice Exporter);
closed_bug_statuses closed_bug_statuses
); );
use Bugzilla::Error;
################################ ################################
##### Initialization ##### ##### Initialization #####
################################ ################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment