File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env rake
22# encoding: utf-8
3+ # frozen_string_literal: true
34
45require 'rake/testtask'
56require 'rubocop/rake_task'
Original file line number Diff line number Diff line change 11# encoding: utf-8
2+ # frozen_string_literal: true
3+
24#
35# Copyright 2015, Dominik Richter
46# Copyright 2016, Christoph Hartmann
Original file line number Diff line number Diff line change 11# encoding: utf-8
2+ # frozen_string_literal: true
3+
24#
35# Copyright 2016, Christoph Hartmann
46#
@@ -33,6 +35,7 @@ class PHP < Inspec.resource(1)
3335 "
3436
3537 def initialize ( options = { } )
38+ super
3639 @options = options
3740 end
3841
@@ -49,13 +52,15 @@ def config(param)
4952 def extension ( extension )
5053 ext = Class . new do
5154 def initialize ( parent , extension )
55+ super
5256 @parent = parent
5357 @extension = extension
5458 end
5559
5660 def loaded?
5761 cmd = @parent . _run ( "#{ @parent . _php_executable } --ri '#{ @extension } '" )
5862 return true if cmd . exit_status . zero?
63+
5964 false
6065 end
6166
@@ -90,6 +95,7 @@ class PHPConfig < PHP
9095 "
9196
9297 def initialize ( param )
98+ super
9399 warn '[DEPRECATION] `php_config(param)` is deprecated. Please use `php.config(param)` instead.'
94100 @param = param
95101 end
@@ -118,6 +124,7 @@ class PHPExtension < PHP
118124 "
119125
120126 def initialize ( extension )
127+ super
121128 warn '[DEPRECATION] `php_extension(ext)` is deprecated. Please use `php.extension(ext)` instead.'
122129 @extension = extension
123130 end
You can’t perform that action at this time.
0 commit comments