1 package MooseX::StrictConstructor::Meta::Method::Constructor;
8 extends 'Moose::Meta::Method::Constructor';
10 sub _generate_BUILDALL ## no critic RequireArgUnpacking
14 my $calls = $self->SUPER::_generate_BUILDALL(@_);
17 my %attrs = map { $_->name() => 1 } $self->meta()->compute_all_applicable_attributes();
19 my @bad = sort grep { ! $attrs{$_} } keys %params;
23 confess "Found unknown attribute(s) passed to the constructor: @bad";