Skip to content

Commit 2e5aad6

Browse files
committed
Update PHP documentation (8.6)
1 parent a2b23b0 commit 2e5aad6

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎lib/docs/filters/php/entries.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_type
145145
'language.operators.increment' => ['++', '--'],
146146
'language.generators.syntax' => ['yield'],
147147
'language.oop5.final' => ['final'],
148-
'language.exceptions' => ['try', 'catch', 'finally'],
148+
'control-structures.try-catch' => ['try', 'catch'],
149149
'language.oop5.decon' => ['__construct()', '__destruct()'],
150150
'language.operators.comparison' => ['==', '===', '!=', '<>', '!==', '<=>'],
151151
'language.oop5.abstract' => ['abstract'],

‎lib/docs/filters/php/internal_urls.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ def call
1111
doc
1212
end
1313

14+
SKIP_URL_PATTERN = /\.(setup|requirements|installation|configuration)\.html\z/
15+
1416
def internal_urls
1517
css('.book a', '.chunklist a').inject [] do |urls, link|
16-
urls << link['href'] if link.next.try(:text?) && link['href'].exclude?('ref.pdo-')
18+
urls << link['href'] if link.next.try(:text?) && link['href'].exclude?('ref.pdo-') && link['href'] !~ SKIP_URL_PATTERN
1719
urls
1820
end
1921
end

‎lib/docs/scrapers/php.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Php < FileScraper
55

66
self.name = 'PHP'
77
self.type = 'php'
8-
self.release = '8.5'
8+
self.release = '8.6'
99
self.base_url = 'https://www.php.net/manual/en/'
1010
self.root_path = 'index.html'
1111
self.initial_paths = %w(
@@ -62,7 +62,7 @@ class Php < FileScraper
6262
options[:skip_patterns] = [/mysqlnd/, /xdevapi/i]
6363

6464
options[:attribution] = <<-HTML
65-
&copy; 1997&ndash;2025 The PHP Documentation Group<br>
65+
&copy; 1997&ndash;2026 The PHP Documentation Group<br>
6666
Licensed under the Creative Commons Attribution License v3.0 or later.
6767
HTML
6868

0 commit comments

Comments
 (0)