Skip to content

Commit

Permalink
remove the last remaining uses of base.pm
Browse files Browse the repository at this point in the history
This finishes the job that 9797d9c
started but only almost finished.
  • Loading branch information
ap committed Mar 11, 2024
1 parent 853f25d commit 0c0070d
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
@@ -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
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
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 0c0070d

Please sign in to comment.