Skip to content

Commit

Permalink
Merge pull request #707 from ap-contrib/master
Browse files Browse the repository at this point in the history
Remove the last remaining uses of base.pm
  • Loading branch information
miyagawa authored Mar 11, 2024
2 parents 853f25d + 0c0070d commit ace4de7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Plack/App/Cascade.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Plack::App::Cascade;
use strict;
use base qw(Plack::Component);
use parent qw(Plack::Component);

use Plack::Util;
use Plack::Util::Accessor qw(apps catch codes);
Expand Down
6 changes: 3 additions & 3 deletions t/Plack-Middleware/httpexceptions.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ sub throw {
}

package HTTP::Error::InternalServerError;
use base qw(HTTP::Error);
use parent -norequire => qw(HTTP::Error);
sub code { 500 }

package HTTP::Error::Forbidden;
use base qw(HTTP::Error);
use parent -norequire => qw(HTTP::Error);
sub code { 403 }
sub as_string { "blah blah blah" }

package HTTP::Error::Redirect;
use base qw(HTTP::Error);
use parent -norequire => qw(HTTP::Error);
sub code { 302 }
sub location { "http://somewhere/else" }

Expand Down
4 changes: 2 additions & 2 deletions t/Plack-Middleware/httpexceptions_streaming.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ sub throw {
}

package HTTP::Error::InternalServerError;
use base qw(HTTP::Error);
use parent -norequire => qw(HTTP::Error);
sub code { 500 }

package HTTP::Error::Forbidden;
use base qw(HTTP::Error);
use parent -norequire => qw(HTTP::Error);
sub code { 403 }
sub as_string { "blah blah blah" }

Expand Down

0 comments on commit ace4de7

Please sign in to comment.