Browse Source

Update PHP documentation (8.5)

Simon Legner 6 days ago
parent
commit
a102a16857
2 changed files with 3 additions and 2 deletions
  1. 1 0
      lib/docs/filters/php/clean_html.rb
  2. 2 2
      lib/docs/scrapers/php.rb

+ 1 - 0
lib/docs/filters/php/clean_html.rb

@@ -4,6 +4,7 @@ module Docs
     class CleanHtmlFilter < Filter
 
       def call
+        @doc = at_css('#layout-content')
         root_page? ? root : other
         doc
       end

+ 2 - 2
lib/docs/scrapers/php.rb

@@ -5,7 +5,7 @@ module Docs
 
     self.name = 'PHP'
     self.type = 'php'
-    self.release = '8.4'
+    self.release = '8.5'
     self.base_url = 'https://www.php.net/manual/en/'
     self.root_path = 'index.html'
     self.initial_paths = %w(
@@ -62,7 +62,7 @@ module Docs
     options[:skip_patterns] = [/mysqlnd/, /xdevapi/i]
 
     options[:attribution] = <<-HTML
-      &copy; 1997&ndash;2024 The PHP Documentation Group<br>
+      &copy; 1997&ndash;2025 The PHP Documentation Group<br>
       Licensed under the Creative Commons Attribution License v3.0 or later.
     HTML